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)
476 list_for_each_entry_safe(rchunk, next, &(rec->r_list[type]), rc_list) {
575 free_recovery_list(&(rec->r_list[type]));
583 struct ocfs2_quota_recovery *rec,
602 if (list_empty(&(rec->r_list[type])))
640 rec);
678 kfree(rec);
691 struct ocfs2_quota_recovery *rec;
737 rec = OCFS2_SB(sb)->quota_rec;
738 if (!rec) {
739 rec = ocfs2_alloc_quota_recovery();
740 if (!rec) {
745 OCFS2_SB(sb)->quota_rec = rec;
749 &rec->r_list[type]);