Lines Matching refs:ql
2755 xfs_qm_freelist_init(xfs_frlist_t *ql) in xfs_qm_freelist_init() argument
2757 ql->qh_next = ql->qh_prev = (xfs_dquot_t *) ql; in xfs_qm_freelist_init()
2758 mutex_init(&ql->qh_lock, MUTEX_DEFAULT, "dqf"); in xfs_qm_freelist_init()
2759 ql->qh_version = 0; in xfs_qm_freelist_init()
2760 ql->qh_nelems = 0; in xfs_qm_freelist_init()
2764 xfs_qm_freelist_destroy(xfs_frlist_t *ql) in xfs_qm_freelist_destroy() argument
2768 mutex_lock(&ql->qh_lock, PINOD); in xfs_qm_freelist_destroy()
2769 for (dqp = ql->qh_next; in xfs_qm_freelist_destroy()
2770 dqp != (xfs_dquot_t *)ql; ) { in xfs_qm_freelist_destroy()
2784 mutex_destroy(&ql->qh_lock); in xfs_qm_freelist_destroy()
2786 ASSERT(ql->qh_nelems == 0); in xfs_qm_freelist_destroy()
2790 xfs_qm_freelist_insert(xfs_frlist_t *ql, xfs_dquot_t *dq) in xfs_qm_freelist_insert() argument
2792 dq->dq_flnext = ql->qh_next; in xfs_qm_freelist_insert()
2793 dq->dq_flprev = (xfs_dquot_t *)ql; in xfs_qm_freelist_insert()
2794 ql->qh_next = dq; in xfs_qm_freelist_insert()
2814 xfs_qm_freelist_append(xfs_frlist_t *ql, xfs_dquot_t *dq) in xfs_qm_freelist_append() argument
2816 xfs_qm_freelist_insert((xfs_frlist_t *)ql->qh_prev, dq); in xfs_qm_freelist_append()