Home
last modified time | relevance | path

Searched refs:bud (Results 1 – 14 of 14) sorted by relevance

/openbmc/linux/fs/ubifs/
H A Dlog.c33 struct ubifs_bud *bud; in ubifs_search_bud() local
38 bud = rb_entry(p, struct ubifs_bud, rb); in ubifs_search_bud()
39 if (lnum < bud->lnum) in ubifs_search_bud()
41 else if (lnum > bud->lnum) in ubifs_search_bud()
45 return bud; in ubifs_search_bud()
62 struct ubifs_bud *bud; in ubifs_get_wbuf() local
71 bud = rb_entry(p, struct ubifs_bud, rb); in ubifs_get_wbuf()
72 if (lnum < bud->lnum) in ubifs_get_wbuf()
74 else if (lnum > bud->lnum) in ubifs_get_wbuf()
77 jhead = bud->jhead; in ubifs_get_wbuf()
[all …]
H A Dreplay.c73 struct ubifs_bud *bud; member
95 lp = ubifs_lpt_lookup_dirty(c, b->bud->lnum); in set_bud_lprops()
102 if (b->bud->start == 0 && (lp->free != c->leb_size || lp->dirty != 0)) { in set_bud_lprops()
122 dbg_mnt("bud LEB %d was GC'd (%d free, %d dirty)", b->bud->lnum, in set_bud_lprops()
124 dbg_gc("bud LEB %d was GC'd (%d free, %d dirty)", b->bud->lnum, in set_bud_lprops()
136 b->bud->lnum, lp->free, lp->dirty, b->free, in set_bud_lprops()
147 err = ubifs_wbuf_seek_nolock(&c->jheads[b->bud->jhead].wbuf, in set_bud_lprops()
148 b->bud->lnum, c->leb_size - b->free); in set_bud_lprops()
514 static int is_last_bud(struct ubifs_info *c, struct ubifs_bud *bud) in is_last_bud() argument
516 struct ubifs_jhead *jh = &c->jheads[bud->jhead]; in is_last_bud()
[all …]
H A Ddebug.c616 struct ubifs_bud *bud; in ubifs_dump_budg() local
658 bud = rb_entry(rb, struct ubifs_bud, rb); in ubifs_dump_budg()
659 pr_err("\tbud LEB %d\n", bud->lnum); in ubifs_dump_budg()
661 list_for_each_entry(bud, &c->old_buds, list) in ubifs_dump_budg()
662 pr_err("\told bud LEB %d\n", bud->lnum); in ubifs_dump_budg()
684 struct ubifs_bud *bud; in ubifs_dump_lprop() local
746 bud = rb_entry(rb, struct ubifs_bud, rb); in ubifs_dump_lprop()
747 if (bud->lnum == lp->lnum) { in ubifs_dump_lprop()
763 dbg_jhead(bud->jhead)); in ubifs_dump_lprop()
H A Dsuper.c924 struct ubifs_bud *bud, *n; in free_buds() local
926 rbtree_postorder_for_each_entry_safe(bud, n, &c->buds, rb) in free_buds()
927 kfree(bud); in free_buds()
1192 struct ubifs_bud *bud; in destroy_journal() local
1194 bud = list_entry(c->old_buds.next, struct ubifs_bud, list); in destroy_journal()
1195 list_del(&bud->list); in destroy_journal()
1196 kfree(bud); in destroy_journal()
H A Dubifs.h1789 void ubifs_add_bud(struct ubifs_info *c, struct ubifs_bud *bud);
/openbmc/u-boot/fs/ubifs/
H A Dlog.c36 struct ubifs_bud *bud; in ubifs_search_bud() local
41 bud = rb_entry(p, struct ubifs_bud, rb); in ubifs_search_bud()
42 if (lnum < bud->lnum) in ubifs_search_bud()
44 else if (lnum > bud->lnum) in ubifs_search_bud()
48 return bud; in ubifs_search_bud()
65 struct ubifs_bud *bud; in ubifs_get_wbuf() local
74 bud = rb_entry(p, struct ubifs_bud, rb); in ubifs_get_wbuf()
75 if (lnum < bud->lnum) in ubifs_get_wbuf()
77 else if (lnum > bud->lnum) in ubifs_get_wbuf()
80 jhead = bud->jhead; in ubifs_get_wbuf()
[all …]
H A Dreplay.c75 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()
[all …]
H A Ddebug.c583 struct ubifs_bud *bud; in ubifs_dump_budg() local
625 bud = rb_entry(rb, struct ubifs_bud, rb); in ubifs_dump_budg()
626 pr_err("\tbud LEB %d\n", bud->lnum); in ubifs_dump_budg()
628 list_for_each_entry(bud, &c->old_buds, list) in ubifs_dump_budg()
629 pr_err("\told bud LEB %d\n", bud->lnum); in ubifs_dump_budg()
656 struct ubifs_bud *bud; in ubifs_dump_lprop() local
718 bud = rb_entry(rb, struct ubifs_bud, rb); in ubifs_dump_lprop()
719 if (bud->lnum == lp->lnum) { in ubifs_dump_lprop()
735 dbg_jhead(bud->jhead)); in ubifs_dump_lprop()
H A Dsuper.c1059 struct ubifs_bud *bud, *n; in free_buds() local
1061 rbtree_postorder_for_each_entry_safe(bud, n, &c->buds, rb) in free_buds()
1062 kfree(bud); in free_buds()
1265 struct ubifs_bud *bud; in destroy_journal() local
1267 bud = list_entry(c->old_buds.next, struct ubifs_bud, list); in destroy_journal()
1268 list_del(&bud->list); in destroy_journal()
1269 kfree(bud); in destroy_journal()
H A Dubifs.h2129 void ubifs_add_bud(struct ubifs_info *c, struct ubifs_bud *bud);
/openbmc/linux/mm/
H A Dzbud.c155 static unsigned long encode_handle(struct zbud_header *zhdr, enum buddy bud) in encode_handle() argument
166 if (bud == FIRST) in encode_handle()
251 enum buddy bud; in zbud_alloc() local
268 bud = FIRST; in zbud_alloc()
270 bud = LAST; in zbud_alloc()
283 bud = FIRST; in zbud_alloc()
286 if (bud == FIRST) in zbud_alloc()
300 *handle = encode_handle(zhdr, bud); in zbud_alloc()
H A Dz3fold.c361 static inline int __idx(struct z3fold_header *zhdr, enum buddy bud) in __idx() argument
363 return (bud + zhdr->first_num) & BUDDY_MASK; in __idx()
372 enum buddy bud) in __encode_handle() argument
381 if (bud == HEADLESS) in __encode_handle()
385 idx = __idx(zhdr, bud); in __encode_handle()
387 if (bud == LAST) in __encode_handle()
396 static unsigned long encode_handle(struct z3fold_header *zhdr, enum buddy bud) in encode_handle() argument
398 return __encode_handle(zhdr, zhdr->slots, bud); in encode_handle()
558 enum buddy bud = HEADLESS; in get_free_buddy() local
563 bud = FIRST; in get_free_buddy()
[all …]
/openbmc/linux/Documentation/filesystems/
H A Dubifs-authentication.rst330 over the previous reference nodes, the current reference node, and the bud
332 between the bud nodes. This new node type contains a HMAC over the current state
344 ,.REF#0,-> bud -> bud -> bud.-> auth -> bud -> bud.-> auth ...
351 , REF#1 -> bud -> bud,-> auth ...
360 skip any journal heads for replay. An attacker can only remove bud nodes or
/openbmc/linux/fs/jfs/
H A Djfs_dmap.c2696 int budsz, bud, w, bsz, size; in dbBackSplit() local
2728 w = (w < bud) ? w : bud) { in dbBackSplit()
2736 bud = w ^ bsz; in dbBackSplit()
2740 if (leaf[bud] != NOFREE) { in dbBackSplit()
2744 cursz = leaf[bud] - 1; in dbBackSplit()
2745 dbSplit(tp, bud, cursz, cursz, is_ctl); in dbBackSplit()