]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: fold xfs_ilock_for_write_fault into xfs_write_fault
authorChristoph Hellwig <hch@lst.de>
Tue, 16 Jul 2024 21:48:01 +0000 (14:48 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 1 Aug 2024 00:09:46 +0000 (17:09 -0700)
commit2ac07fe949e5d8116dc31b4a9b4932035b0e55d5
treef68fafa63b503d620db014fc9d16e84fb71dc32d
parentf596545146b9762fa21484f5eb24bdc6e8084c7d
xfs: fold xfs_ilock_for_write_fault into xfs_write_fault

Now that the page fault handler has been refactored, the only caller
of xfs_ilock_for_write_fault is simple enough and calls it
unconditionally.  Fold the logic and expand the comments explaining it.

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