Lines Matching refs:gfs2_quota_data
111 struct gfs2_quota_data *qd = container_of(rcu, struct gfs2_quota_data, qd_rcu); in gfs2_qd_dealloc()
119 static void gfs2_qd_dispose(struct gfs2_quota_data *qd) in gfs2_qd_dispose()
143 struct gfs2_quota_data *qd; in gfs2_qd_list_dispose()
146 qd = list_first_entry(list, struct gfs2_quota_data, qd_lru); in gfs2_qd_list_dispose()
158 struct gfs2_quota_data *qd = in gfs2_qd_isolate()
159 list_entry(item, struct gfs2_quota_data, qd_lru); in gfs2_qd_isolate()
207 static u64 qd2index(struct gfs2_quota_data *qd) in qd2index()
214 static u64 qd2offset(struct gfs2_quota_data *qd) in qd2offset()
219 static struct gfs2_quota_data *qd_alloc(unsigned hash, struct gfs2_sbd *sdp, struct kqid qid) in qd_alloc()
221 struct gfs2_quota_data *qd; in qd_alloc()
248 static struct gfs2_quota_data *gfs2_qd_search_bucket(unsigned int hash, in gfs2_qd_search_bucket()
252 struct gfs2_quota_data *qd; in gfs2_qd_search_bucket()
271 struct gfs2_quota_data **qdp) in qd_get()
273 struct gfs2_quota_data *qd, *new_qd; in qd_get()
309 static void qd_hold(struct gfs2_quota_data *qd) in qd_hold()
316 static void qd_put(struct gfs2_quota_data *qd) in qd_put()
338 static int slot_get(struct gfs2_quota_data *qd) in slot_get()
361 static void slot_hold(struct gfs2_quota_data *qd) in slot_hold()
371 static void slot_put(struct gfs2_quota_data *qd) in slot_put()
384 static int bh_get(struct gfs2_quota_data *qd) in bh_get()
438 static void bh_put(struct gfs2_quota_data *qd) in bh_put()
452 static int qd_check_sync(struct gfs2_sbd *sdp, struct gfs2_quota_data *qd, in qd_check_sync()
470 static int qd_bh_get_or_undo(struct gfs2_sbd *sdp, struct gfs2_quota_data *qd) in qd_bh_get_or_undo()
484 static int qd_fish(struct gfs2_sbd *sdp, struct gfs2_quota_data **qdp) in qd_fish()
486 struct gfs2_quota_data *qd = NULL, *iter; in qd_fish()
515 static void qdsb_put(struct gfs2_quota_data *qd) in qdsb_put()
522 static void qd_unlock(struct gfs2_quota_data *qd) in qd_unlock()
530 struct gfs2_quota_data **qdp) in qdsb_get()
603 struct gfs2_quota_data **qd; in gfs2_quota_hold()
679 const struct gfs2_quota_data *qd_a = *(const struct gfs2_quota_data **)a; in sort_qd()
680 const struct gfs2_quota_data *qd_b = *(const struct gfs2_quota_data **)b; in sort_qd()
689 static void do_qc(struct gfs2_quota_data *qd, s64 change, int qc_type) in do_qc()
844 s64 change, struct gfs2_quota_data *qd, in gfs2_adjust_quota()
897 static int do_sync(unsigned int num_qd, struct gfs2_quota_data **qda) in do_sync()
905 struct gfs2_quota_data *qd; in do_sync()
918 sort(qda, num_qd, sizeof(struct gfs2_quota_data *), sort_qd, NULL); in do_sync()
994 static int update_qd(struct gfs2_sbd *sdp, struct gfs2_quota_data *qd) in update_qd()
1019 static int do_glock(struct gfs2_quota_data *qd, int force_refresh, in do_glock()
1071 struct gfs2_quota_data *qd; in gfs2_quota_lock()
1084 sizeof(struct gfs2_quota_data *), sort_qd, NULL); in gfs2_quota_lock()
1104 static bool need_sync(struct gfs2_quota_data *qd) in need_sync()
1142 struct gfs2_quota_data *qda[2 * GFS2_MAXQUOTAS]; in gfs2_quota_unlock()
1151 struct gfs2_quota_data *qd; in gfs2_quota_unlock()
1183 static int print_message(struct gfs2_quota_data *qd, char *type) in print_message()
1217 struct gfs2_quota_data *qd; in gfs2_quota_check()
1273 struct gfs2_quota_data *qd; in gfs2_quota_change()
1299 struct gfs2_quota_data *qd; in qd_changed()
1318 struct gfs2_quota_data **qda; in gfs2_quota_sync()
1327 qda = kcalloc(max_qd, sizeof(struct gfs2_quota_data *), GFP_KERNEL); in gfs2_quota_sync()
1362 struct gfs2_quota_data *qd; in gfs2_quota_refresh()
1428 struct gfs2_quota_data *qd; in gfs2_quota_init()
1481 struct gfs2_quota_data *qd; in gfs2_quota_cleanup()
1636 struct gfs2_quota_data *qd; in gfs2_get_dqblk()
1675 struct gfs2_quota_data *qd; in gfs2_set_dqblk()