f2fs: let f2fs_precache_extents() traverses in file range
authorChao Yu <chao@kernel.org>
Tue, 10 Oct 2023 01:34:59 +0000 (09:34 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 12 Oct 2023 00:31:38 +0000 (17:31 -0700)
commit6f560c0f2aa00a3627c748aa0b194b81e99db5d7
treec0ca22f3de49666a484855600ad139c0dbca6b53
parente0d4e8acb3789c5a8651061fbab62ca24a45c063
f2fs: let f2fs_precache_extents() traverses in file range

Rather than in range of [0, max_file_blocks()), since data after EOF
is alwasy zero, it's unnecessary to preload mapping info of the data.

Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c