aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_inode.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2006-06-18 18:41:30 -0400
committerNathan Scott <nathans@sgi.com>2006-06-18 18:41:30 -0400
commit0d8fee3270f8a5e4bf95fbed3e81e21b57f8a5a0 (patch)
treee965874962259a2f16980f19a4e5c03ef635a86f /fs/xfs/xfs_inode.c
parenta805bad5daae8d4f92ce46f467484d4867e996d4 (diff)
[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>
Diffstat (limited to 'fs/xfs/xfs_inode.c')
-rw-r--r--fs/xfs/xfs_inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c
index 9af9e32a6a16..e799f0d00873 100644
--- a/fs/xfs/xfs_inode.c
+++ b/fs/xfs/xfs_inode.c
@@ -3015,7 +3015,7 @@ xfs_iflush(
3015 XFS_STATS_INC(xs_iflush_count); 3015 XFS_STATS_INC(xs_iflush_count);
3016 3016
3017 ASSERT(ismrlocked(&ip->i_lock, MR_UPDATE|MR_ACCESS)); 3017 ASSERT(ismrlocked(&ip->i_lock, MR_UPDATE|MR_ACCESS));
3018 ASSERT(valusema(&ip->i_flock) <= 0); 3018 ASSERT(issemalocked(&(ip->i_flock)));
3019 ASSERT(ip->i_d.di_format != XFS_DINODE_FMT_BTREE || 3019 ASSERT(ip->i_d.di_format != XFS_DINODE_FMT_BTREE ||
3020 ip->i_d.di_nextents > ip->i_df.if_ext_max); 3020 ip->i_d.di_nextents > ip->i_df.if_ext_max);
3021 3021
@@ -3273,7 +3273,7 @@ xfs_iflush_int(
3273 SPLDECL(s); 3273 SPLDECL(s);
3274 3274
3275 ASSERT(ismrlocked(&ip->i_lock, MR_UPDATE|MR_ACCESS)); 3275 ASSERT(ismrlocked(&ip->i_lock, MR_UPDATE|MR_ACCESS));
3276 ASSERT(valusema(&ip->i_flock) <= 0); 3276 ASSERT(issemalocked(&(ip->i_flock)));
3277 ASSERT(ip->i_d.di_format != XFS_DINODE_FMT_BTREE || 3277 ASSERT(ip->i_d.di_format != XFS_DINODE_FMT_BTREE ||
3278 ip->i_d.di_nextents > ip->i_df.if_ext_max); 3278 ip->i_d.di_nextents > ip->i_df.if_ext_max);
3279 3279