diff options
author | Jan Kara <jack@suse.cz> | 2021-04-13 18:10:37 +0200 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2021-07-13 14:29:01 +0200 |
commit | edc6d01bad7331b376a1a8f5c6d8e9221e9f9f37 (patch) | |
tree | 5cca3b28b2310be5cc9a5a43acea7df7bec4756f /fs/f2fs/f2fs.h | |
parent | 448f94909eb7056e53c882b82514ea4f3adcf544 (diff) | |
download | linux-stable-edc6d01bad7331b376a1a8f5c6d8e9221e9f9f37.tar.gz linux-stable-edc6d01bad7331b376a1a8f5c6d8e9221e9f9f37.tar.bz2 linux-stable-edc6d01bad7331b376a1a8f5c6d8e9221e9f9f37.zip |
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>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r-- | fs/f2fs/f2fs.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index ee8eb33e2c25..906b2c4b50e7 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -754,7 +754,6 @@ struct f2fs_inode_info { /* avoid racing between foreground op and gc */ struct rw_semaphore i_gc_rwsem[2]; - struct rw_semaphore i_mmap_sem; struct rw_semaphore i_xattr_sem; /* avoid racing between reading and changing EAs */ int i_extra_isize; /* size of extra space located in i_addr */ |