]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commit
f2fs: add parameter @len to f2fs_invalidate_blocks()
authorYi Sun <yi.sun@unisoc.com>
Mon, 23 Dec 2024 08:10:43 +0000 (16:10 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 13 Jan 2025 18:49:32 +0000 (18:49 +0000)
commite53c568f4603e997426712146dce0bc194c1db12
tree6854a72ebf8d1340ce756508ea83d3ed85e86c60
parent81ffbd224e5f926bf8df01d6107db9c8779f7d57
f2fs: add parameter @len to f2fs_invalidate_blocks()

New function can process some consecutive blocks at a time.

Function f2fs_invalidate_blocks()->down_write() and up_write()
are very time-consuming, so if f2fs_invalidate_blocks() can
process consecutive blocks at one time, it will save a lot of time.

Signed-off-by: Yi Sun <yi.sun@unisoc.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/compress.c
fs/f2fs/f2fs.h
fs/f2fs/file.c
fs/f2fs/node.c
fs/f2fs/segment.c