xfs: Remove mrlock wrapper
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 19 Feb 2024 15:41:13 +0000 (15:41 +0000)
committerChandan Babu R <chandanbabu@kernel.org>
Mon, 19 Feb 2024 15:49:33 +0000 (21:19 +0530)
commit785dd131525060c87994ff077ea3376f05c98304
treeacd84dfed3a2af3570982c6801ce674c9610cf9d
parent3fed24fffc76dd1a8105db558e98bc8355d60379
xfs: Remove mrlock wrapper

mrlock was an rwsem wrapper that also recorded whether the lock was
held for read or write.  Now that we can ask the generic code whether
the lock is held for read or write, we can remove this wrapper and use
an rwsem directly.

As the comment says, we can't use lockdep to assert that the ILOCK is
held for write, because we might be in a workqueue, and we aren't able
to tell lockdep that we do in fact own the lock.

Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: "Matthew Wilcox (Oracle)" <willy@infradead.org>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
fs/xfs/mrlock.h [deleted file]
fs/xfs/xfs_inode.c
fs/xfs/xfs_inode.h
fs/xfs/xfs_iops.c
fs/xfs/xfs_linux.h
fs/xfs/xfs_super.c