ext4: Convert to use mapping->invalidate_lock
Convert ext4 to use mapping->invalidate_lock instead of its private EXT4_I(inode)->i_mmap_sem. This is mostly search-and-replace. 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: <linux-ext4@vger.kernel.org> CC: Ted Tso <tytso@mit.edu> Acked-by: NTheodore Ts'o <tytso@mit.edu> Reviewed-by: NDarrick J. Wong <djwong@kernel.org> Signed-off-by: NJan Kara <jack@suse.cz>
Showing
想要评论请 注册 或 登录