]> www.infradead.org Git - users/jedix/linux-maple.git/commit
f2fs: add a fast path in finish_preallocate_blocks()
authorChao Yu <chao@kernel.org>
Tue, 25 Mar 2025 08:13:21 +0000 (16:13 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 10 Apr 2025 03:59:58 +0000 (03:59 +0000)
commitecf68ffee7be3f012c978e8e31d7b243af340f77
tree29453fe9eea2b063756a0d9b91bc3e90b1f161c8
parent773704c1ef96a8b70d0d186ab725f50548de82c4
f2fs: add a fast path in finish_preallocate_blocks()

This patch uses i_sem to protect access/update on f2fs_inode_info.flag
in finish_preallocate_blocks(), it avoids grabbing inode_lock() in
each open().

Signed-off-by: Chao Yu <chao@kernel.org>
Reviewed-by: Zhiguo Niu <zhiguo.niu@unisoc.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c