From 59bb7421da0168b7ff4f80f7cccf080c73cd5610 Mon Sep 17 00:00:00 2001 From: Donald Douwsma Date: Tue, 8 May 2007 13:49:09 +1000 Subject: [PATCH] --- yaml --- r: 55138 b: refs/heads/master c: 646d5bdab38c88f4b9088d4e517986a3f3b0edb9 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/xfs/quota/xfs_qm.c | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 53f8e6342b24..cb7e7bc7d850 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e7a23a9b37c395a153a541d4c50e166eef6abe49 +refs/heads/master: 646d5bdab38c88f4b9088d4e517986a3f3b0edb9 diff --git a/trunk/fs/xfs/quota/xfs_qm.c b/trunk/fs/xfs/quota/xfs_qm.c index 762af2d1b50f..3e4a8ad8a34c 100644 --- a/trunk/fs/xfs/quota/xfs_qm.c +++ b/trunk/fs/xfs/quota/xfs_qm.c @@ -388,6 +388,17 @@ xfs_qm_mount_quotas( return XFS_ERROR(error); } } + /* + * If one type of quotas is off, then it will lose its + * quotachecked status, since we won't be doing accounting for + * that type anymore. + */ + if (!XFS_IS_UQUOTA_ON(mp)) { + mp->m_qflags &= ~XFS_UQUOTA_CHKD; + } + if (!(XFS_IS_GQUOTA_ON(mp) || XFS_IS_PQUOTA_ON(mp))) { + mp->m_qflags &= ~XFS_OQUOTA_CHKD; + } write_changes: /*