aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_vfsops.c
diff options
context:
space:
mode:
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;