Lines Matching defs:rec
328 void ocfs2_free_quota_recovery(struct ocfs2_quota_recovery *rec)
333 free_recovery_list(&(rec->r_list[type]));
334 kfree(rec);
373 struct ocfs2_quota_recovery *rec;
375 rec = kmalloc(sizeof(struct ocfs2_quota_recovery), GFP_NOFS);
376 if (!rec)
379 INIT_LIST_HEAD(&(rec->r_list[type]));
380 return rec;
399 struct ocfs2_quota_recovery *rec;
404 rec = ocfs2_alloc_quota_recovery();
405 if (!rec)
437 &rec->r_list[type]);
448 ocfs2_free_quota_recovery(rec);
449 rec = ERR_PTR(status);
451 return rec;
460 struct ocfs2_quota_recovery *rec)
477 list_for_each_entry_safe(rchunk, next, &(rec->r_list[type]), rc_list) {
578 free_recovery_list(&(rec->r_list[type]));
586 struct ocfs2_quota_recovery *rec,
605 if (list_empty(&(rec->r_list[type])))
643 rec);
681 kfree(rec);
694 struct ocfs2_quota_recovery *rec;
740 rec = OCFS2_SB(sb)->quota_rec;
741 if (!rec) {
742 rec = ocfs2_alloc_quota_recovery();
743 if (!rec) {
748 OCFS2_SB(sb)->quota_rec = rec;
752 &rec->r_list[type]);