Lines Matching refs:rec
328 void ocfs2_free_quota_recovery(struct ocfs2_quota_recovery *rec) in ocfs2_free_quota_recovery() argument
333 free_recovery_list(&(rec->r_list[type])); in ocfs2_free_quota_recovery()
334 kfree(rec); in ocfs2_free_quota_recovery()
373 struct ocfs2_quota_recovery *rec; in ocfs2_alloc_quota_recovery() local
375 rec = kmalloc(sizeof(struct ocfs2_quota_recovery), GFP_NOFS); in ocfs2_alloc_quota_recovery()
376 if (!rec) in ocfs2_alloc_quota_recovery()
379 INIT_LIST_HEAD(&(rec->r_list[type])); in ocfs2_alloc_quota_recovery()
380 return rec; in ocfs2_alloc_quota_recovery()
399 struct ocfs2_quota_recovery *rec; in ocfs2_begin_quota_recovery() local
404 rec = ocfs2_alloc_quota_recovery(); in ocfs2_begin_quota_recovery()
405 if (!rec) in ocfs2_begin_quota_recovery()
437 &rec->r_list[type]); in ocfs2_begin_quota_recovery()
448 ocfs2_free_quota_recovery(rec); in ocfs2_begin_quota_recovery()
449 rec = ERR_PTR(status); in ocfs2_begin_quota_recovery()
451 return rec; in ocfs2_begin_quota_recovery()
460 struct ocfs2_quota_recovery *rec) in ocfs2_recover_local_quota_file() argument
476 list_for_each_entry_safe(rchunk, next, &(rec->r_list[type]), rc_list) { in ocfs2_recover_local_quota_file()
575 free_recovery_list(&(rec->r_list[type])); in ocfs2_recover_local_quota_file()
583 struct ocfs2_quota_recovery *rec, in ocfs2_finish_quota_recovery() argument
602 if (list_empty(&(rec->r_list[type]))) in ocfs2_finish_quota_recovery()
640 rec); in ocfs2_finish_quota_recovery()
678 kfree(rec); in ocfs2_finish_quota_recovery()
691 struct ocfs2_quota_recovery *rec; in ocfs2_local_read_info() local
737 rec = OCFS2_SB(sb)->quota_rec; in ocfs2_local_read_info()
738 if (!rec) { in ocfs2_local_read_info()
739 rec = ocfs2_alloc_quota_recovery(); in ocfs2_local_read_info()
740 if (!rec) { in ocfs2_local_read_info()
745 OCFS2_SB(sb)->quota_rec = rec; in ocfs2_local_read_info()
749 &rec->r_list[type]); in ocfs2_local_read_info()