summaryrefslogtreecommitdiffstats
path: root/fs/xfs/quota/xfs_qm.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2010-04-20 17:01:53 +1000
committerAlex Elder <aelder@sgi.com>2010-05-19 09:58:15 -0500
commit191f8488f9f7600a96e1500ee2ee74a407e2eb1c (patch)
tree23dbc84d31563e64ff60d99a2974727ca3bf8e42 /fs/xfs/quota/xfs_qm.c
parent8a7b8a89a3ae5b510396cdcc821698d4aa20afcf (diff)
downloadblackbird-op-linux-191f8488f9f7600a96e1500ee2ee74a407e2eb1c.tar.gz
blackbird-op-linux-191f8488f9f7600a96e1500ee2ee74a407e2eb1c.zip
xfs: remove a few macro indirections in the quota code
Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/quota/xfs_qm.c')
-rw-r--r--fs/xfs/quota/xfs_qm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/xfs/quota/xfs_qm.c b/fs/xfs/quota/xfs_qm.c
index 6ef2809b3166..0abbdd721349 100644
--- a/fs/xfs/quota/xfs_qm.c
+++ b/fs/xfs/quota/xfs_qm.c
@@ -1591,8 +1591,10 @@ xfs_qm_quotacheck_dqadjust(
/*
* Set default limits, adjust timers (since we changed usages)
+ *
+ * There are no timers for the default values set in the root dquot.
*/
- if (! XFS_IS_SUSER_DQUOT(dqp)) {
+ if (dqp->q_core.d_id) {
xfs_qm_adjust_dqlimits(dqp->q_mount, &dqp->q_core);
xfs_qm_adjust_dqtimers(dqp->q_mount, &dqp->q_core);
}
OpenPOWER on IntegriCloud