Lines Matching refs:i_qadata
541 if (ip->i_qadata == NULL) { in gfs2_qa_get()
542 ip->i_qadata = kmem_cache_zalloc(gfs2_qadata_cachep, GFP_NOFS); in gfs2_qa_get()
543 if (!ip->i_qadata) { in gfs2_qa_get()
548 ip->i_qadata->qa_ref++; in gfs2_qa_get()
557 if (ip->i_qadata && --ip->i_qadata->qa_ref == 0) { in gfs2_qa_put()
558 kmem_cache_free(gfs2_qadata_cachep, ip->i_qadata); in gfs2_qa_put()
559 ip->i_qadata = NULL; in gfs2_qa_put()
577 qd = ip->i_qadata->qa_qd; in gfs2_quota_hold()
579 if (gfs2_assert_warn(sdp, !ip->i_qadata->qa_qd_num) || in gfs2_quota_hold()
588 ip->i_qadata->qa_qd_num++; in gfs2_quota_hold()
594 ip->i_qadata->qa_qd_num++; in gfs2_quota_hold()
602 ip->i_qadata->qa_qd_num++; in gfs2_quota_hold()
611 ip->i_qadata->qa_qd_num++; in gfs2_quota_hold()
627 if (ip->i_qadata == NULL) in gfs2_quota_unhold()
632 for (x = 0; x < ip->i_qadata->qa_qd_num; x++) { in gfs2_quota_unhold()
633 qdsb_put(ip->i_qadata->qa_qd[x]); in gfs2_quota_unhold()
634 ip->i_qadata->qa_qd[x] = NULL; in gfs2_quota_unhold()
636 ip->i_qadata->qa_qd_num = 0; in gfs2_quota_unhold()
1061 sort(ip->i_qadata->qa_qd, ip->i_qadata->qa_qd_num, in gfs2_quota_lock()
1064 for (x = 0; x < ip->i_qadata->qa_qd_num; x++) { in gfs2_quota_lock()
1065 qd = ip->i_qadata->qa_qd[x]; in gfs2_quota_lock()
1066 error = do_glock(qd, NO_FORCE, &ip->i_qadata->qa_qd_ghs[x]); in gfs2_quota_lock()
1075 gfs2_glock_dq_uninit(&ip->i_qadata->qa_qd_ghs[x]); in gfs2_quota_lock()
1129 for (x = 0; x < ip->i_qadata->qa_qd_num; x++) { in gfs2_quota_unlock()
1133 qd = ip->i_qadata->qa_qd[x]; in gfs2_quota_unlock()
1136 gfs2_glock_dq_uninit(&ip->i_qadata->qa_qd_ghs[x]); in gfs2_quota_unlock()
1211 for (x = 0; x < ip->i_qadata->qa_qd_num; x++) { in gfs2_quota_check()
1212 qd = ip->i_qadata->qa_qd[x]; in gfs2_quota_check()
1268 if (gfs2_assert_withdraw(sdp, ip->i_qadata && in gfs2_quota_change()
1269 ip->i_qadata->qa_ref > 0)) in gfs2_quota_change()
1271 for (x = 0; x < ip->i_qadata->qa_qd_num; x++) { in gfs2_quota_change()
1272 qd = ip->i_qadata->qa_qd[x]; in gfs2_quota_change()