diff options
author | Jie Liu <jeff.liu@oracle.com> | 2012-04-11 23:59:57 -0400 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2012-04-16 17:32:20 -0400 |
commit | da5bf95e3cdca348327c82568c2860229c0daaa2 (patch) | |
tree | 2489e495921c4bcdd16246feeeeaef5ade6924c5 | |
parent | 18caa67ad41212e6f82a675c40f461ffb45f098e (diff) |
xfs: don't fill statvfs with project quota for a directory if it was not enabled.
Check if the project quota is running or not before performing
xfs_qm_statvfs(), just return if not. Otherwise the ASSERT
XFS_IS_QUOTA_RUNNING in xfs_qm_dqget will be popped.
Signed-off-by: Jie Liu <jeff.liu@oracle.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
-rw-r--r-- | fs/xfs/xfs_super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c index dab9a5f6dfd6..93f7a3f750d3 100644 --- a/fs/xfs/xfs_super.c +++ b/fs/xfs/xfs_super.c | |||
@@ -1072,7 +1072,7 @@ xfs_fs_statfs( | |||
1072 | 1072 | ||
1073 | spin_unlock(&mp->m_sb_lock); | 1073 | spin_unlock(&mp->m_sb_lock); |
1074 | 1074 | ||
1075 | if ((ip->i_d.di_flags & XFS_DIFLAG_PROJINHERIT) || | 1075 | if ((ip->i_d.di_flags & XFS_DIFLAG_PROJINHERIT) && |
1076 | ((mp->m_qflags & (XFS_PQUOTA_ACCT|XFS_OQUOTA_ENFD))) == | 1076 | ((mp->m_qflags & (XFS_PQUOTA_ACCT|XFS_OQUOTA_ENFD))) == |
1077 | (XFS_PQUOTA_ACCT|XFS_OQUOTA_ENFD)) | 1077 | (XFS_PQUOTA_ACCT|XFS_OQUOTA_ENFD)) |
1078 | xfs_qm_statvfs(ip, statp); | 1078 | xfs_qm_statvfs(ip, statp); |