Skip to content

Commit

Permalink
xfs: integrate xfs_quota_priv header file to xfs_qm
Browse files Browse the repository at this point in the history
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.

Signed-off-by: Jie Liu <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Ben Myers <[email protected]>
  • Loading branch information
pibroch authored and Ben Myers committed Dec 6, 2013
1 parent c61a9e3 commit afbd123
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 43 deletions.
18 changes: 17 additions & 1 deletion fs/xfs/xfs_qm.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,28 @@

#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
Expand Down
42 changes: 0 additions & 42 deletions fs/xfs/xfs_quota_priv.h

This file was deleted.

0 comments on commit afbd123

Please sign in to comment.