[XFS] Kill direct access to ->count in valusema(); all we ever use it for
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 18 Jun 2006 22:41:30 +0000 (08:41 +1000)
committerNathan Scott <nathans@sgi.com>
Sun, 18 Jun 2006 22:41:30 +0000 (08:41 +1000)
commit0d8fee3270f8a5e4bf95fbed3e81e21b57f8a5a0
treee965874962259a2f16980f19a4e5c03ef635a86f
parenta805bad5daae8d4f92ce46f467484d4867e996d4
[XFS] Kill direct access to ->count in valusema(); all we ever use it for
is check if semaphore is actually locked, which can be trivially done in
portable way. Code gets more reabable, while we are at it...

SGI-PV: 953915
SGI-Modid: xfs-linux-melb:xfs-kern:26274a

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Nathan Scott <nathans@sgi.com>
fs/xfs/linux-2.6/sema.h
fs/xfs/quota/xfs_dquot.h
fs/xfs/quota/xfs_dquot_item.c
fs/xfs/xfs_iget.c
fs/xfs/xfs_inode.c
fs/xfs/xfs_inode_item.c