Lines Matching refs:bud

82 	struct ubifs_bud *bud;  member
104 lp = ubifs_lpt_lookup_dirty(c, b->bud->lnum); in set_bud_lprops()
111 if (b->bud->start == 0 && (lp->free != c->leb_size || lp->dirty != 0)) { in set_bud_lprops()
131 dbg_mnt("bud LEB %d was GC'd (%d free, %d dirty)", b->bud->lnum, in set_bud_lprops()
133 dbg_gc("bud LEB %d was GC'd (%d free, %d dirty)", b->bud->lnum, in set_bud_lprops()
145 b->bud->lnum, lp->free, lp->dirty, b->free, in set_bud_lprops()
156 err = ubifs_wbuf_seek_nolock(&c->jheads[b->bud->jhead].wbuf, in set_bud_lprops()
157 b->bud->lnum, c->leb_size - b->free); in set_bud_lprops()
484 static int is_last_bud(struct ubifs_info *c, struct ubifs_bud *bud) in is_last_bud() argument
486 struct ubifs_jhead *jh = &c->jheads[bud->jhead]; in is_last_bud()
491 if (list_is_last(&bud->list, &jh->buds_list)) in is_last_bud()
521 next = list_entry(bud->list.next, struct ubifs_bud, list); in is_last_bud()
543 int is_last = is_last_bud(c, b->bud); in replay_bud()
544 int err = 0, used = 0, lnum = b->bud->lnum, offs = b->bud->start; in replay_bud()
549 lnum, b->bud->jhead, offs, is_last); in replay_bud()
558 sleb = ubifs_recover_leb(c, lnum, offs, c->sbuf, b->bud->jhead); in replay_bud()
748 struct ubifs_bud *bud; in add_replay_bud() local
753 bud = kmalloc(sizeof(struct ubifs_bud), GFP_KERNEL); in add_replay_bud()
754 if (!bud) in add_replay_bud()
759 kfree(bud); in add_replay_bud()
763 bud->lnum = lnum; in add_replay_bud()
764 bud->start = offs; in add_replay_bud()
765 bud->jhead = jhead; in add_replay_bud()
766 ubifs_add_bud(c, bud); in add_replay_bud()
768 b->bud = bud; in add_replay_bud()
788 struct ubifs_bud *bud; in validate_ref() local
804 bud = ubifs_search_bud(c, lnum); in validate_ref()
805 if (bud) { in validate_ref()
806 if (bud->jhead == jhead && bud->start <= offs) in validate_ref()