[f2fs-dev] [PATCH -next] f2fs: adding truncate page cache after being moved

2022-09-12 Thread Zhang Qilong via Linux-f2fs-devel
If we do not truncate source page cache, user can still see the previous source data after being moved. We fix it by adding truncating after __exchange_data_block. Fixes:4dd6f977fc778 ("f2fs: support an ioctl to move a range of data blocks") Signed-off-by: Zhang Qilong --- fs/f2fs/file.c | 4 +++

Re: [f2fs-dev] [PATCH -next] f2fs: adding truncate page cache after being moved

2022-09-12 Thread Chao Yu
On 2022/9/13 11:05, Zhang Qilong wrote: If we do not truncate source page cache, user can still see the previous source data after being moved. We fix it by adding truncating after __exchange_data_block. Fixes:4dd6f977fc778 ("f2fs: support an ioctl to move a range of data blocks") Signed-off-by: