xfs: improve xfs_isilocked
authorChristoph Hellwig <hch@infradead.org>
Thu, 3 Jun 2010 06:22:29 +0000 (16:22 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 3 Jun 2010 06:22:29 +0000 (16:22 +1000)
commitf9369729496a0f4c607a4cc1ea4dfeddbbfc505a
tree05d463cd3c40514f09c01553cfd40ea3ea784f37
parent070ecdca54dde9577d2697088e74e45568f48efb
xfs: improve xfs_isilocked

Use rwsem_is_locked to make the assertations for shared locks work.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/xfs_iget.c