f2fs: fix to adjust appropirate defragment pg_end
authorZhiguo Niu <zhiguo.niu@unisoc.com>
Wed, 27 Mar 2024 08:53:40 +0000 (16:53 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 2 Apr 2024 23:38:07 +0000 (23:38 +0000)
commit197080156f27b6bf8cf198e9313dfbb94769c736
tree62eda6f73332893fe95bebc6d684fd525ae02997
parentac5eecf481c29942eb9a862e758c0c8b68090c33
f2fs: fix to adjust appropirate defragment pg_end

A length that exceeds the real size of the inode may be
specified from user, although these out-of-range areas
are not mapped, but they still need to be check in
while loop, which is unnecessary.

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