]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: always take XFS_MMAPLOCK shared in xfs_dax_read_fault
authorChristoph Hellwig <hch@lst.de>
Sun, 23 Jun 2024 05:44:30 +0000 (07:44 +0200)
committerChandan Babu R <chandanbabu@kernel.org>
Mon, 1 Jul 2024 04:02:29 +0000 (09:32 +0530)
commit4e82fa11fbbcc5426366dc2ddc839fd56b9d53de
tree5a814a6e5235170775fc49330929fa8f7e6a1871
parent6a39ec1d394458e59f411edecf7b08ce34bdc7c8
xfs: always take XFS_MMAPLOCK shared in xfs_dax_read_fault

After the previous refactoring, xfs_dax_fault is now never used for write
faults, so don't bother with the xfs_ilock_for_write_fault logic to
protect against writes when remapping is in progress.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
fs/xfs/xfs_file.c