[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>
This commit is contained in:
Al Viro
2006-06-19 08:41:30 +10:00
committed by Nathan Scott
parent a805bad5da
commit 0d8fee3270
6 changed files with 20 additions and 19 deletions

View File

@ -1031,6 +1031,6 @@ xfs_iflock_nowait(xfs_inode_t *ip)
void
xfs_ifunlock(xfs_inode_t *ip)
{
ASSERT(valusema(&(ip->i_flock)) <= 0);
ASSERT(issemalocked(&(ip->i_flock)));
vsema(&(ip->i_flock));
}