diff options
author | Yang Guo <guoyang2@huawei.com> | 2021-02-24 23:02:48 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-02-25 00:38:28 +0300 |
commit | 4ebd3aec3842662300979dacd6fb38e3e8edf7f4 (patch) | |
tree | 5c88f3a4390297fe73d8ac51e9613b35f4fc0a87 /fs/binfmt_flat.c | |
parent | 826ea860bc4d119731026655c383c7773c9d2dad (diff) | |
download | linux-4ebd3aec3842662300979dacd6fb38e3e8edf7f4.tar.xz |
fs/buffer.c: add checking buffer head stat before clear
clear_buffer_new() is used to clear buffer new stat. When PAGE_SIZE is
64K, most buffer heads in the list are not needed to clear.
clear_buffer_new() has an enpensive atomic modification operation, Let's
add checking buffer head before clear it as __block_write_begin_int does
which is good for performance.
Link: https://lkml.kernel.org/r/1612332890-57918-1-git-send-email-zhangshaokun@hisilicon.com
Signed-off-by: Yang Guo <guoyang2@huawei.com>
Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: Nick Piggin <npiggin@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/binfmt_flat.c')
0 files changed, 0 insertions, 0 deletions