Re: [f2fs-dev] [PATCH V2] f2fs: fix to adjust appropirate defragment pg_end

2024-03-27 Thread Chao Yu
On 2024/3/27 9:26, Zhiguo Niu wrote: On Tue, Mar 26, 2024 at 7:11 PM Chao Yu wrote: On 2024/3/25 13:56, Zhiguo Niu wrote: 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

Re: [f2fs-dev] [PATCH V2] f2fs: fix to adjust appropirate defragment pg_end

2024-03-26 Thread Zhiguo Niu
On Tue, Mar 26, 2024 at 7:11 PM Chao Yu wrote: > > On 2024/3/25 13:56, Zhiguo Niu wrote: > > 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

Re: [f2fs-dev] [PATCH V2] f2fs: fix to adjust appropirate defragment pg_end

2024-03-26 Thread Chao Yu
On 2024/3/25 13:56, Zhiguo Niu wrote: 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 --- v2: check i_size within inode

[f2fs-dev] [PATCH V2] f2fs: fix to adjust appropirate defragment pg_end

2024-03-24 Thread Zhiguo Niu
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 --- v2: check i_size within inode lock according to Chao's suggestions ---