aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_vfsops.c
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@sandeen.net>2007-10-11 03:42:32 -0400
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>2008-02-07 00:47:15 -0500
commit3685c2a1d773781608c9e281a6ff6b4c8ea8f6f9 (patch)
treef3d3a45002e64c8204de0db66bad2db1b73b5844 /fs/xfs/xfs_vfsops.c
parentba74d0cba51dcaa99e4dc2e4fb62e6e13abbf703 (diff)
[XFS] Unwrap XFS_SB_LOCK.
Un-obfuscate XFS_SB_LOCK, remove XFS_SB_LOCK->mutex_lock->spin_lock macros, call spin_lock directly, remove extraneous cookie holdover from old xfs code, and change lock type to spinlock_t. SGI-PV: 970382 SGI-Modid: xfs-linux-melb:xfs-kern:29746a Signed-off-by: Eric Sandeen <sandeen@sandeen.net> Signed-off-by: Donald Douwsma <donaldd@sgi.com> Signed-off-by: Tim Shimmin <tes@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_vfsops.c')
-rw-r--r--fs/xfs/xfs_vfsops.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/xfs/xfs_vfsops.c b/fs/xfs/xfs_vfsops.c
index f90d95582047..44f0216c03e9 100644
--- a/fs/xfs/xfs_vfsops.c
+++ b/fs/xfs/xfs_vfsops.c
@@ -854,14 +854,13 @@ xfs_statvfs(
854 __uint64_t fakeinos; 854 __uint64_t fakeinos;
855 xfs_extlen_t lsize; 855 xfs_extlen_t lsize;
856 xfs_sb_t *sbp; 856 xfs_sb_t *sbp;
857 unsigned long s;
858 857
859 sbp = &(mp->m_sb); 858 sbp = &(mp->m_sb);
860 859
861 statp->f_type = XFS_SB_MAGIC; 860 statp->f_type = XFS_SB_MAGIC;
862 861
863 xfs_icsb_sync_counters_flags(mp, XFS_ICSB_LAZY_COUNT); 862 xfs_icsb_sync_counters_flags(mp, XFS_ICSB_LAZY_COUNT);
864 s = XFS_SB_LOCK(mp); 863 spin_lock(&mp->m_sb_lock);
865 statp->f_bsize = sbp->sb_blocksize; 864 statp->f_bsize = sbp->sb_blocksize;
866 lsize = sbp->sb_logstart ? sbp->sb_logblocks : 0; 865 lsize = sbp->sb_logstart ? sbp->sb_logblocks : 0;
867 statp->f_blocks = sbp->sb_dblocks - lsize; 866 statp->f_blocks = sbp->sb_dblocks - lsize;
@@ -881,7 +880,7 @@ xfs_statvfs(
881 statp->f_files, 880 statp->f_files,
882 mp->m_maxicount); 881 mp->m_maxicount);
883 statp->f_ffree = statp->f_files - (sbp->sb_icount - sbp->sb_ifree); 882 statp->f_ffree = statp->f_files - (sbp->sb_icount - sbp->sb_ifree);
884 XFS_SB_UNLOCK(mp, s); 883 spin_unlock(&mp->m_sb_lock);
885 884
886 xfs_statvfs_fsid(statp, mp); 885 xfs_statvfs_fsid(statp, mp);
887 statp->f_namelen = MAXNAMELEN - 1; 886 statp->f_namelen = MAXNAMELEN - 1;