Lines Matching refs:h
67 #define XQMLCK(h) (mutex_lock(&((h)->qh_lock), PINOD)) argument
68 #define XQMUNLCK(h) (mutex_unlock(&((h)->qh_lock))) argument
71 static inline int XQMISLCKD(struct xfs_dqhash *h) in XQMISLCKD() argument
73 if (mutex_trylock(&h->qh_lock)) { in XQMISLCKD()
74 mutex_unlock(&h->qh_lock); in XQMISLCKD()
81 #define XFS_DQ_HASH_LOCK(h) XQMLCK(h) argument
82 #define XFS_DQ_HASH_UNLOCK(h) XQMUNLCK(h) argument
83 #define XFS_DQ_IS_HASH_LOCKED(h) XQMISLCKD(h) argument
123 #define _LIST_REMOVE(h, dqp, PVP, NXT) \ argument
131 (h)->qh_version++; \
132 (h)->qh_nelems--; \
135 #define _LIST_INSERT(h, dqp, PVP, NXT) \ argument
138 if (((d) = (h)->qh_next)) \
141 (dqp)->PVP = &((h)->qh_next); \
142 (h)->qh_next = dqp; \
143 (h)->qh_version++; \
144 (h)->qh_nelems++; \
154 #define XQM_HASHLIST_INSERT(h, dqp) \ argument
155 _LIST_INSERT(h, dqp, HL_PREVP, HL_NEXT)
157 #define XQM_FREELIST_INSERT(h, dqp) \ argument
158 xfs_qm_freelist_append(h, dqp)
160 #define XQM_MPLIST_INSERT(h, dqp) \ argument
161 _LIST_INSERT(h, dqp, MPL_PREVP, MPL_NEXT)
163 #define XQM_HASHLIST_REMOVE(h, dqp) \ argument
164 _LIST_REMOVE(h, dqp, HL_PREVP, HL_NEXT)
167 #define XQM_MPLIST_REMOVE(h, dqp) \ argument
168 { _LIST_REMOVE(h, dqp, MPL_PREVP, MPL_NEXT); \