]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: fold xfs_ilock_for_write_fault into xfs_write_fault
authorChristoph Hellwig <hch@lst.de>
Sun, 23 Jun 2024 05:44:31 +0000 (07:44 +0200)
committerChandan Babu R <chandanbabu@kernel.org>
Mon, 1 Jul 2024 04:02:29 +0000 (09:32 +0530)
commit4818fd60db5feeeecb84d36d0162c3fb3eccb522
tree65480926671be7a501b2495e4aa748cccb8d90de
parent4e82fa11fbbcc5426366dc2ddc839fd56b9d53de
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