diff options
Diffstat (limited to 'fs/xfs/quota/xfs_dquot.h')
-rw-r--r-- | fs/xfs/quota/xfs_dquot.h | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/fs/xfs/quota/xfs_dquot.h b/fs/xfs/quota/xfs_dquot.h index 56fb21d81bc4..5da3a23b820d 100644 --- a/fs/xfs/quota/xfs_dquot.h +++ b/fs/xfs/quota/xfs_dquot.h | |||
@@ -43,21 +43,10 @@ struct xfs_mount; | |||
43 | struct xfs_trans; | 43 | struct xfs_trans; |
44 | 44 | ||
45 | /* | 45 | /* |
46 | * This is the marker which is designed to occupy the first few | ||
47 | * bytes of the xfs_dquot_t structure. Even inside this, the freelist pointers | ||
48 | * must come first. | ||
49 | * This serves as the marker ("sentinel") when we have to restart list | ||
50 | * iterations because of locking considerations. | ||
51 | */ | ||
52 | typedef struct xfs_dqmarker { | ||
53 | uint dqm_flags; /* various flags (XFS_DQ_*) */ | ||
54 | } xfs_dqmarker_t; | ||
55 | |||
56 | /* | ||
57 | * The incore dquot structure | 46 | * The incore dquot structure |
58 | */ | 47 | */ |
59 | typedef struct xfs_dquot { | 48 | typedef struct xfs_dquot { |
60 | xfs_dqmarker_t q_lists; /* list ptrs, q_flags (marker) */ | 49 | uint dq_flags; /* various flags (XFS_DQ_*) */ |
61 | struct list_head q_freelist; /* global free list of dquots */ | 50 | struct list_head q_freelist; /* global free list of dquots */ |
62 | struct list_head q_mplist; /* mount's list of dquots */ | 51 | struct list_head q_mplist; /* mount's list of dquots */ |
63 | struct list_head q_hashlist; /* gloabl hash list of dquots */ | 52 | struct list_head q_hashlist; /* gloabl hash list of dquots */ |
@@ -81,13 +70,6 @@ typedef struct xfs_dquot { | |||
81 | wait_queue_head_t q_pinwait; /* dquot pinning wait queue */ | 70 | wait_queue_head_t q_pinwait; /* dquot pinning wait queue */ |
82 | } xfs_dquot_t; | 71 | } xfs_dquot_t; |
83 | 72 | ||
84 | |||
85 | #define dq_flnext q_lists.dqm_flnext | ||
86 | #define dq_flprev q_lists.dqm_flprev | ||
87 | #define dq_mplist q_lists.dqm_mplist | ||
88 | #define dq_hashlist q_lists.dqm_hashlist | ||
89 | #define dq_flags q_lists.dqm_flags | ||
90 | |||
91 | /* | 73 | /* |
92 | * Lock hierarchy for q_qlock: | 74 | * Lock hierarchy for q_qlock: |
93 | * XFS_QLOCK_NORMAL is the implicit default, | 75 | * XFS_QLOCK_NORMAL is the implicit default, |
@@ -121,7 +103,6 @@ static inline void xfs_dqfunlock(xfs_dquot_t *dqp) | |||
121 | } | 103 | } |
122 | 104 | ||
123 | #define XFS_DQ_IS_LOCKED(dqp) (mutex_is_locked(&((dqp)->q_qlock))) | 105 | #define XFS_DQ_IS_LOCKED(dqp) (mutex_is_locked(&((dqp)->q_qlock))) |
124 | #define XFS_DQ_IS_ON_FREELIST(dqp) ((dqp)->dq_flnext != (dqp)) | ||
125 | #define XFS_DQ_IS_DIRTY(dqp) ((dqp)->dq_flags & XFS_DQ_DIRTY) | 106 | #define XFS_DQ_IS_DIRTY(dqp) ((dqp)->dq_flags & XFS_DQ_DIRTY) |
126 | #define XFS_QM_ISUDQ(dqp) ((dqp)->dq_flags & XFS_DQ_USER) | 107 | #define XFS_QM_ISUDQ(dqp) ((dqp)->dq_flags & XFS_DQ_USER) |
127 | #define XFS_QM_ISPDQ(dqp) ((dqp)->dq_flags & XFS_DQ_PROJ) | 108 | #define XFS_QM_ISPDQ(dqp) ((dqp)->dq_flags & XFS_DQ_PROJ) |