diff options
author | Chandra Seetharaman <sekharan@us.ibm.com> | 2012-01-23 12:31:43 -0500 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2012-02-03 12:32:20 -0500 |
commit | 4177af3a8a6f119484c7903845c6693d7381c13e (patch) | |
tree | 3d5c5179e0c11bfc85d84a62f6bfabec6632bf9c /fs/xfs | |
parent | 6bd92a239fc71ea26eb1dab3aece5eaaa99d4ef7 (diff) |
Define new macro XFS_ALL_QUOTA_ACTIVE and simply some usage
Define new macro XFS_ALL_QUOTA_ACTIVE and simply some usage
of quota macros.
Signed-off-by: Chandra Seetharaman <sekharan@us.ibm.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs')
-rw-r--r-- | fs/xfs/xfs_qm.c | 2 | ||||
-rw-r--r-- | fs/xfs/xfs_quota.h | 2 | ||||
-rw-r--r-- | fs/xfs/xfs_super.c | 7 |
3 files changed, 6 insertions, 5 deletions
diff --git a/fs/xfs/xfs_qm.c b/fs/xfs/xfs_qm.c index 671f37eae1c7..1b2f5b37eac4 100644 --- a/fs/xfs/xfs_qm.c +++ b/fs/xfs/xfs_qm.c | |||
@@ -1499,7 +1499,7 @@ xfs_qm_quotacheck( | |||
1499 | * quotachecked status, since we won't be doing accounting for | 1499 | * quotachecked status, since we won't be doing accounting for |
1500 | * that type anymore. | 1500 | * that type anymore. |
1501 | */ | 1501 | */ |
1502 | mp->m_qflags &= ~(XFS_OQUOTA_CHKD | XFS_UQUOTA_CHKD); | 1502 | mp->m_qflags &= ~XFS_ALL_QUOTA_CHKD; |
1503 | mp->m_qflags |= flags; | 1503 | mp->m_qflags |= flags; |
1504 | 1504 | ||
1505 | error_return: | 1505 | error_return: |
diff --git a/fs/xfs/xfs_quota.h b/fs/xfs/xfs_quota.h index 8a0807e0f979..b50ec5b95d5a 100644 --- a/fs/xfs/xfs_quota.h +++ b/fs/xfs/xfs_quota.h | |||
@@ -174,6 +174,8 @@ typedef struct xfs_qoff_logformat { | |||
174 | #define XFS_UQUOTA_ACTIVE 0x0100 /* uquotas are being turned off */ | 174 | #define XFS_UQUOTA_ACTIVE 0x0100 /* uquotas are being turned off */ |
175 | #define XFS_PQUOTA_ACTIVE 0x0200 /* pquotas are being turned off */ | 175 | #define XFS_PQUOTA_ACTIVE 0x0200 /* pquotas are being turned off */ |
176 | #define XFS_GQUOTA_ACTIVE 0x0400 /* gquotas are being turned off */ | 176 | #define XFS_GQUOTA_ACTIVE 0x0400 /* gquotas are being turned off */ |
177 | #define XFS_ALL_QUOTA_ACTIVE \ | ||
178 | (XFS_UQUOTA_ACTIVE | XFS_PQUOTA_ACTIVE | XFS_GQUOTA_ACTIVE) | ||
177 | 179 | ||
178 | /* | 180 | /* |
179 | * Checking XFS_IS_*QUOTA_ON() while holding any inode lock guarantees | 181 | * Checking XFS_IS_*QUOTA_ON() while holding any inode lock guarantees |
diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c index ee5b695c99a7..5e0d43f231a4 100644 --- a/fs/xfs/xfs_super.c +++ b/fs/xfs/xfs_super.c | |||
@@ -324,10 +324,9 @@ xfs_parseargs( | |||
324 | } else if (!strcmp(this_char, MNTOPT_FILESTREAM)) { | 324 | } else if (!strcmp(this_char, MNTOPT_FILESTREAM)) { |
325 | mp->m_flags |= XFS_MOUNT_FILESTREAMS; | 325 | mp->m_flags |= XFS_MOUNT_FILESTREAMS; |
326 | } else if (!strcmp(this_char, MNTOPT_NOQUOTA)) { | 326 | } else if (!strcmp(this_char, MNTOPT_NOQUOTA)) { |
327 | mp->m_qflags &= ~(XFS_UQUOTA_ACCT | XFS_UQUOTA_ACTIVE | | 327 | mp->m_qflags &= ~XFS_ALL_QUOTA_ACCT; |
328 | XFS_GQUOTA_ACCT | XFS_GQUOTA_ACTIVE | | 328 | mp->m_qflags &= ~XFS_ALL_QUOTA_ENFD; |
329 | XFS_PQUOTA_ACCT | XFS_PQUOTA_ACTIVE | | 329 | mp->m_qflags &= ~XFS_ALL_QUOTA_ACTIVE; |
330 | XFS_UQUOTA_ENFD | XFS_OQUOTA_ENFD); | ||
331 | } else if (!strcmp(this_char, MNTOPT_QUOTA) || | 330 | } else if (!strcmp(this_char, MNTOPT_QUOTA) || |
332 | !strcmp(this_char, MNTOPT_UQUOTA) || | 331 | !strcmp(this_char, MNTOPT_UQUOTA) || |
333 | !strcmp(this_char, MNTOPT_USRQUOTA)) { | 332 | !strcmp(this_char, MNTOPT_USRQUOTA)) { |