Lines Matching refs:bud
75 struct ubifs_bud *bud; member
97 lp = ubifs_lpt_lookup_dirty(c, b->bud->lnum); in set_bud_lprops()
104 if (b->bud->start == 0 && (lp->free != c->leb_size || lp->dirty != 0)) { in set_bud_lprops()
124 dbg_mnt("bud LEB %d was GC'd (%d free, %d dirty)", b->bud->lnum, in set_bud_lprops()
126 dbg_gc("bud LEB %d was GC'd (%d free, %d dirty)", b->bud->lnum, in set_bud_lprops()
138 b->bud->lnum, lp->free, lp->dirty, b->free, in set_bud_lprops()
149 err = ubifs_wbuf_seek_nolock(&c->jheads[b->bud->jhead].wbuf, in set_bud_lprops()
150 b->bud->lnum, c->leb_size - b->free); in set_bud_lprops()
477 static int is_last_bud(struct ubifs_info *c, struct ubifs_bud *bud) in is_last_bud() argument
479 struct ubifs_jhead *jh = &c->jheads[bud->jhead]; in is_last_bud()
484 if (list_is_last(&bud->list, &jh->buds_list)) in is_last_bud()
514 next = list_entry(bud->list.next, struct ubifs_bud, list); in is_last_bud()
536 int is_last = is_last_bud(c, b->bud); in replay_bud()
537 int err = 0, used = 0, lnum = b->bud->lnum, offs = b->bud->start; in replay_bud()
542 lnum, b->bud->jhead, offs, is_last); in replay_bud()
551 sleb = ubifs_recover_leb(c, lnum, offs, c->sbuf, b->bud->jhead); in replay_bud()
741 struct ubifs_bud *bud; in add_replay_bud() local
746 bud = kmalloc(sizeof(struct ubifs_bud), GFP_KERNEL); in add_replay_bud()
747 if (!bud) in add_replay_bud()
752 kfree(bud); in add_replay_bud()
756 bud->lnum = lnum; in add_replay_bud()
757 bud->start = offs; in add_replay_bud()
758 bud->jhead = jhead; in add_replay_bud()
759 ubifs_add_bud(c, bud); in add_replay_bud()
761 b->bud = bud; in add_replay_bud()
781 struct ubifs_bud *bud; in validate_ref() local
797 bud = ubifs_search_bud(c, lnum); in validate_ref()
798 if (bud) { in validate_ref()
799 if (bud->jhead == jhead && bud->start <= offs) in validate_ref()