diff options
| author | Matthew Wilcox (Oracle) <[email protected]> | 2024-02-19 15:41:13 +0000 |
|---|---|---|
| committer | Chandan Babu R <[email protected]> | 2024-02-19 15:49:33 +0000 |
| commit | 785dd131525060c87994ff077ea3376f05c98304 (patch) | |
| tree | acd84dfed3a2af3570982c6801ce674c9610cf9d /fs/xfs/xfs_inode.h | |
| parent | xfs: Replace xfs_isilocked with xfs_assert_ilocked (diff) | |
| download | kernel-785dd131525060c87994ff077ea3376f05c98304.tar.gz kernel-785dd131525060c87994ff077ea3376f05c98304.zip | |
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" <[email protected]>
Reviewed-by: Dave Chinner <[email protected]>
Signed-off-by: "Matthew Wilcox (Oracle)" <[email protected]>
Signed-off-by: Chandan Babu R <[email protected]>
Diffstat (limited to 'fs/xfs/xfs_inode.h')
| -rw-r--r-- | fs/xfs/xfs_inode.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_inode.h b/fs/xfs/xfs_inode.h index dcc818901a79..796d11065fe2 100644 --- a/fs/xfs/xfs_inode.h +++ b/fs/xfs/xfs_inode.h @@ -39,7 +39,7 @@ typedef struct xfs_inode { /* Transaction and locking information. */ struct xfs_inode_log_item *i_itemp; /* logging information */ - mrlock_t i_lock; /* inode lock */ + struct rw_semaphore i_lock; /* inode lock */ atomic_t i_pincount; /* inode pin count */ struct llist_node i_gclist; /* deferred inactivation list */ |
