xfs: convert pag_ici_lock to a spin lock
authorDave Chinner <dchinner@redhat.com>
Thu, 16 Dec 2010 06:08:41 +0000 (17:08 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 16 Dec 2010 06:08:41 +0000 (17:08 +1100)
commit1a427ab0c1b205d1bda8da0b77ea9d295ac23c57
treedc0fffd22282d0da29da43b3ebdeed7c3f5fac1d
parent1a3e8f3da09c7082d25b512a0ffe569391e4c09a
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>
fs/xfs/linux-2.6/xfs_sync.c
fs/xfs/xfs_ag.h
fs/xfs/xfs_iget.c
fs/xfs/xfs_mount.c