commit | edc6d01bad7331b376a1a8f5c6d8e9221e9f9f37 | [log] [tgz] |
---|---|---|
author | Jan Kara <jack@suse.cz> | Tue Apr 13 18:10:37 2021 +0200 |
committer | Jan Kara <jack@suse.cz> | Tue Jul 13 14:29:01 2021 +0200 |
tree | 5cca3b28b2310be5cc9a5a43acea7df7bec4756f | |
parent | 448f94909eb7056e53c882b82514ea4f3adcf544 [diff] |
f2fs: Convert to using invalidate_lock 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@kernel.org> CC: Chao Yu <yuchao0@huawei.com> CC: linux-f2fs-devel@lists.sourceforge.net Acked-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jan Kara <jack@suse.cz>