]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: split write fault handling out of __xfs_filemap_fault
authorChristoph Hellwig <hch@lst.de>
Tue, 29 Oct 2024 15:11:58 +0000 (16:11 +0100)
committerCarlos Maiolino <cem@kernel.org>
Tue, 5 Nov 2024 12:52:57 +0000 (13:52 +0100)
commit1eb6fc044752d0ec1a637956519787e5f6ce8760
tree7297d5e9ccbab4fe356c1d49b5dc5addd8aa8d98
parent1171de329692163470f1cde7cc99f89487ca555a
xfs: split write fault handling out of __xfs_filemap_fault

Only two of the callers of __xfs_filemap_fault every handle read faults.
Split the write_fault handling out of __xfs_filemap_fault so that all
callers call that directly either conditionally or unconditionally and
only leave the read fault handling in __xfs_filemap_fault.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_file.c