aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/quota/xfs_quota_priv.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2010-04-20 03:01:53 -0400
committerAlex Elder <aelder@sgi.com>2010-05-19 10:58:15 -0400
commit191f8488f9f7600a96e1500ee2ee74a407e2eb1c (patch)
tree23dbc84d31563e64ff60d99a2974727ca3bf8e42 /fs/xfs/quota/xfs_quota_priv.h
parent8a7b8a89a3ae5b510396cdcc821698d4aa20afcf (diff)
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_quota_priv.h')
-rw-r--r--fs/xfs/quota/xfs_quota_priv.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/fs/xfs/quota/xfs_quota_priv.h b/fs/xfs/quota/xfs_quota_priv.h
index f1179ffa5e93..94a3d927d716 100644
--- a/fs/xfs/quota/xfs_quota_priv.h
+++ b/fs/xfs/quota/xfs_quota_priv.h
@@ -24,8 +24,6 @@
24 */ 24 */
25#define XFS_DQITER_MAP_SIZE 10 25#define XFS_DQITER_MAP_SIZE 10
26 26
27#define XFS_DQ_IS_ADDEDTO_TRX(t, d) ((d)->q_transp == (t))
28
29/* 27/*
30 * Hash into a bucket in the dquot hash table, based on <mp, id>. 28 * Hash into a bucket in the dquot hash table, based on <mp, id>.
31 */ 29 */
@@ -37,9 +35,6 @@
37 XFS_DQ_HASHVAL(mp, id)) : \ 35 XFS_DQ_HASHVAL(mp, id)) : \
38 (xfs_Gqm->qm_grp_dqhtable + \ 36 (xfs_Gqm->qm_grp_dqhtable + \
39 XFS_DQ_HASHVAL(mp, id))) 37 XFS_DQ_HASHVAL(mp, id)))
40#define XFS_IS_DQTYPE_ON(mp, type) (type == XFS_DQ_USER ? \
41 XFS_IS_UQUOTA_ON(mp) : \
42 XFS_IS_OQUOTA_ON(mp))
43#define XFS_IS_DQUOT_UNINITIALIZED(dqp) ( \ 38#define XFS_IS_DQUOT_UNINITIALIZED(dqp) ( \
44 !dqp->q_core.d_blk_hardlimit && \ 39 !dqp->q_core.d_blk_hardlimit && \
45 !dqp->q_core.d_blk_softlimit && \ 40 !dqp->q_core.d_blk_softlimit && \
@@ -51,14 +46,6 @@
51 !dqp->q_core.d_rtbcount && \ 46 !dqp->q_core.d_rtbcount && \
52 !dqp->q_core.d_icount) 47 !dqp->q_core.d_icount)
53 48
54#define XFS_DQ_IS_LOGITEM_INITD(dqp) ((dqp)->q_logitem.qli_dquot == (dqp))
55
56#define XFS_QM_DQP_TO_DQACCT(tp, dqp) (XFS_QM_ISUDQ(dqp) ? \
57 (tp)->t_dqinfo->dqa_usrdquots : \
58 (tp)->t_dqinfo->dqa_grpdquots)
59#define XFS_IS_SUSER_DQUOT(dqp) \
60 (!((dqp)->q_core.d_id))
61
62#define DQFLAGTO_TYPESTR(d) (((d)->dq_flags & XFS_DQ_USER) ? "USR" : \ 49#define DQFLAGTO_TYPESTR(d) (((d)->dq_flags & XFS_DQ_USER) ? "USR" : \
63 (((d)->dq_flags & XFS_DQ_GROUP) ? "GRP" : \ 50 (((d)->dq_flags & XFS_DQ_GROUP) ? "GRP" : \
64 (((d)->dq_flags & XFS_DQ_PROJ) ? "PRJ":"???"))) 51 (((d)->dq_flags & XFS_DQ_PROJ) ? "PRJ":"???")))