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()
520 static int is_last_bud(struct ubifs_info *c, struct ubifs_bud *bud) in is_last_bud() argument
522 struct ubifs_jhead *jh = &c->jheads[bud->jhead]; in is_last_bud()
527 if (list_is_last(&bud->list, &jh->buds_list)) in is_last_bud()
557 next = list_entry(bud->list.next, struct ubifs_bud, list); in is_last_bud()
579 int is_last = is_last_bud(c, b->bud); in replay_bud()
580 int err = 0, used = 0, lnum = b->bud->lnum, offs = b->bud->start; in replay_bud()
585 lnum, b->bud->jhead, offs, is_last); in replay_bud()
594 sleb = ubifs_recover_leb(c, lnum, offs, c->sbuf, b->bud->jhead); in replay_bud()
784 struct ubifs_bud *bud; in add_replay_bud() local
789 bud = kmalloc(sizeof(struct ubifs_bud), GFP_KERNEL); in add_replay_bud()
790 if (!bud) in add_replay_bud()
795 kfree(bud); in add_replay_bud()
799 bud->lnum = lnum; in add_replay_bud()
800 bud->start = offs; in add_replay_bud()
801 bud->jhead = jhead; in add_replay_bud()
802 ubifs_add_bud(c, bud); in add_replay_bud()
804 b->bud = bud; in add_replay_bud()
824 struct ubifs_bud *bud; in validate_ref() local
840 bud = ubifs_search_bud(c, lnum); in validate_ref()
841 if (bud) { in validate_ref()
842 if (bud->jhead == jhead && bud->start <= offs) in validate_ref()