On 2021/5/25 21:50, Jan Kara wrote:
Use invalidate_lock instead of f2fs' private i_mmap_sem. The intended purpose is exactly the same. By this conversion we fix a long standing race between hole punching and read(2) / readahead(2) paths that can lead to stale page cache contents. CC: Jaegeuk Kim <jaegeuk@xxxxxxxxxx> CC: Chao Yu <yuchao0@xxxxxxxxxx> CC: linux-f2fs-devel@xxxxxxxxxxxxxxxxxxxxx Signed-off-by: Jan Kara <jack@xxxxxxx>
Acked-by: Chao Yu <yuchao0@xxxxxxxxxx> Thanks,