Skip to contentSkip to conversation

xfs: integrate xfs_quota_priv header file to xfs_qm

PATCH In review Jeff Liu 2 participants 2 messages Nov 22, 2013 – Nov 23, 2013 XFS filesystem

lore
Share & tools
lore

Jeff Liu

author
#0 lore raw

PATCH v2 1/1 xfs: integrate xfs_quota_priv header file to xfs_qm

From: Jie Liu <[email protected]>

The xfs_quota_priv header file is only included by xfs_qm header and there is no much users for its contents, hence we can move those stuff to xfs_qm header file and kill it.

This patch also remove an unused macro DQFLAGTO_TYPESTR.

---
v2: kill the duplicated pasting...

 fs/xfs/xfs_qm.h         |   18 +++++++++++++++++-
 fs/xfs/xfs_quota_priv.h |   42 ------------------------------------------
 2 files changed, 17 insertions(+), 43 deletions(-)
 delete mode 100644 fs/xfs/xfs_quota_priv.h
fs/xfs/xfs_qm.h +17 -1
index a788b66..797fd46 100644
@@ -20,13 +20,29 @@
 
 #include "xfs_dquot_item.h"
 #include "xfs_dquot.h"
-#include "xfs_quota_priv.h"
 
 struct xfs_inode;
 
 extern struct kmem_zone	*xfs_qm_dqtrxzone;
 
 /*
+ * Number of bmaps that we ask from bmapi when doing a quotacheck.
+ * We make this restriction to keep the memory usage to a minimum.
+ */
+#define XFS_DQITER_MAP_SIZE	10
+
+#define XFS_IS_DQUOT_UNINITIALIZED(dqp) ( \
+	!dqp->q_core.d_blk_hardlimit && \
+	!dqp->q_core.d_blk_softlimit && \
+	!dqp->q_core.d_rtb_hardlimit && \
+	!dqp->q_core.d_rtb_softlimit && \
+	!dqp->q_core.d_ino_hardlimit && \
+	!dqp->q_core.d_ino_softlimit && \
+	!dqp->q_core.d_bcount && \
+	!dqp->q_core.d_rtbcount && \
+	!dqp->q_core.d_icount)
+
+/*
  * This defines the unit of allocation of dquots.
  * Currently, it is just one file system block, and a 4K blk contains 30
  * (136 * 30 = 4080) dquots. It's probably not worth trying to make
fs/xfs/xfs_quota_priv.h deleted +0 -42

42 lines not on this page · raw message

Signature · 6 lines
1.7.9.5

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Reviewed-by on v2 1/1
#1 lore raw
Quoted 9 lines · Jeff Liu

From: Jie Liu <[email protected]>

The xfs_quota_priv header file is only included by xfs_qm header and there is no much users for its contents, hence we can move those stuff to xfs_qm header file and kill it.

This patch also remove an unused macro DQFLAGTO_TYPESTR.

Looks good,

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs