diff options
author | Dave Chinner <dchinner@redhat.com> | 2010-12-16 17:08:41 +1100 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2010-12-16 17:08:41 +1100 |
commit | 1a427ab0c1b205d1bda8da0b77ea9d295ac23c57 (patch) | |
tree | dc0fffd22282d0da29da43b3ebdeed7c3f5fac1d /fs/xfs/xfs_mount.c | |
parent | 1a3e8f3da09c7082d25b512a0ffe569391e4c09a (diff) | |
download | op-kernel-dev-1a427ab0c1b205d1bda8da0b77ea9d295ac23c57.zip op-kernel-dev-1a427ab0c1b205d1bda8da0b77ea9d295ac23c57.tar.gz |
xfs: convert pag_ici_lock to a spin lock
now that we are using RCU protection for the inode cache lookups,
the lock is only needed on the modification side. Hence it is not
necessary for the lock to be a rwlock as there are no read side
holders anymore. Convert it to a spin lock to reflect it's exclusive
nature.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Alex Elder <aelder@sgi.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/xfs_mount.c')
-rw-r--r-- | fs/xfs/xfs_mount.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_mount.c b/fs/xfs/xfs_mount.c index 40579fd..d447aef 100644 --- a/fs/xfs/xfs_mount.c +++ b/fs/xfs/xfs_mount.c @@ -472,7 +472,7 @@ xfs_initialize_perag( goto out_unwind; pag->pag_agno = index; pag->pag_mount = mp; - rwlock_init(&pag->pag_ici_lock); + spin_lock_init(&pag->pag_ici_lock); mutex_init(&pag->pag_ici_reclaim_lock); INIT_RADIX_TREE(&pag->pag_ici_root, GFP_ATOMIC); spin_lock_init(&pag->pag_buf_lock); |