Skip to content

Commit da5bf95

Browse files
pibrochBen Myers
authored andcommitted
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 <[email protected]> Signed-off-by: Ben Myers <[email protected]>
1 parent 18caa67 commit da5bf95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/xfs/xfs_super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1072,7 +1072,7 @@ xfs_fs_statfs(
10721072

10731073
spin_unlock(&mp->m_sb_lock);
10741074

1075-
if ((ip->i_d.di_flags & XFS_DIFLAG_PROJINHERIT) ||
1075+
if ((ip->i_d.di_flags & XFS_DIFLAG_PROJINHERIT) &&
10761076
((mp->m_qflags & (XFS_PQUOTA_ACCT|XFS_OQUOTA_ENFD))) ==
10771077
(XFS_PQUOTA_ACCT|XFS_OQUOTA_ENFD))
10781078
xfs_qm_statvfs(ip, statp);

0 commit comments

Comments
 (0)