bud 2714 fs/jfs/jfs_dmap.c int budsz, bud, w, bsz, size; bud 2746 fs/jfs/jfs_dmap.c w = (w < bud) ? w : bud) { bud 2754 fs/jfs/jfs_dmap.c bud = w ^ bsz; bud 2758 fs/jfs/jfs_dmap.c if (leaf[bud] != NOFREE) { bud 2762 fs/jfs/jfs_dmap.c cursz = leaf[bud] - 1; bud 2763 fs/jfs/jfs_dmap.c dbSplit(tp, bud, cursz, cursz); bud 579 fs/ubifs/debug.c struct ubifs_bud *bud; bud 621 fs/ubifs/debug.c bud = rb_entry(rb, struct ubifs_bud, rb); bud 622 fs/ubifs/debug.c pr_err("\tbud LEB %d\n", bud->lnum); bud 624 fs/ubifs/debug.c list_for_each_entry(bud, &c->old_buds, list) bud 625 fs/ubifs/debug.c pr_err("\told bud LEB %d\n", bud->lnum); bud 647 fs/ubifs/debug.c struct ubifs_bud *bud; bud 709 fs/ubifs/debug.c bud = rb_entry(rb, struct ubifs_bud, rb); bud 710 fs/ubifs/debug.c if (bud->lnum == lp->lnum) { bud 726 fs/ubifs/debug.c dbg_jhead(bud->jhead)); bud 33 fs/ubifs/log.c struct ubifs_bud *bud; bud 38 fs/ubifs/log.c bud = rb_entry(p, struct ubifs_bud, rb); bud 39 fs/ubifs/log.c if (lnum < bud->lnum) bud 41 fs/ubifs/log.c else if (lnum > bud->lnum) bud 45 fs/ubifs/log.c return bud; bud 62 fs/ubifs/log.c struct ubifs_bud *bud; bud 71 fs/ubifs/log.c bud = rb_entry(p, struct ubifs_bud, rb); bud 72 fs/ubifs/log.c if (lnum < bud->lnum) bud 74 fs/ubifs/log.c else if (lnum > bud->lnum) bud 77 fs/ubifs/log.c jhead = bud->jhead; bud 112 fs/ubifs/log.c void ubifs_add_bud(struct ubifs_info *c, struct ubifs_bud *bud) bud 123 fs/ubifs/log.c ubifs_assert(c, bud->lnum != b->lnum); bud 124 fs/ubifs/log.c if (bud->lnum < b->lnum) bud 130 fs/ubifs/log.c rb_link_node(&bud->rb, parent, p); bud 131 fs/ubifs/log.c rb_insert_color(&bud->rb, &c->buds); bud 133 fs/ubifs/log.c jhead = &c->jheads[bud->jhead]; bud 134 fs/ubifs/log.c list_add_tail(&bud->list, &jhead->buds_list); bud 144 fs/ubifs/log.c c->bud_bytes += c->leb_size - bud->start; bud 146 fs/ubifs/log.c dbg_log("LEB %d:%d, jhead %s, bud_bytes %lld", bud->lnum, bud 147 fs/ubifs/log.c bud->start, dbg_jhead(bud->jhead), c->bud_bytes); bud 167 fs/ubifs/log.c struct ubifs_bud *bud; bud 170 fs/ubifs/log.c bud = kmalloc(sizeof(struct ubifs_bud), GFP_NOFS); bud 171 fs/ubifs/log.c if (!bud) bud 175 fs/ubifs/log.c kfree(bud); bud 224 fs/ubifs/log.c bud->lnum = lnum; bud 225 fs/ubifs/log.c bud->start = offs; bud 226 fs/ubifs/log.c bud->jhead = jhead; bud 227 fs/ubifs/log.c bud->log_hash = NULL; bud 230 fs/ubifs/log.c ref->lnum = cpu_to_le32(bud->lnum); bud 231 fs/ubifs/log.c ref->offs = cpu_to_le32(bud->start); bud 247 fs/ubifs/log.c if (bud->start == 0) { bud 255 fs/ubifs/log.c err = ubifs_leb_map(c, bud->lnum); bud 277 fs/ubifs/log.c ubifs_add_bud(c, bud); bud 286 fs/ubifs/log.c kfree(bud); bud 307 fs/ubifs/log.c struct ubifs_bud *bud; bud 311 fs/ubifs/log.c bud = rb_entry(p1, struct ubifs_bud, rb); bud 312 fs/ubifs/log.c wbuf = &c->jheads[bud->jhead].wbuf; bud 314 fs/ubifs/log.c if (wbuf->lnum == bud->lnum) { bud 319 fs/ubifs/log.c c->cmt_bud_bytes += wbuf->offs - bud->start; bud 321 fs/ubifs/log.c bud->lnum, bud->start, dbg_jhead(bud->jhead), bud 322 fs/ubifs/log.c wbuf->offs - bud->start, c->cmt_bud_bytes); bud 323 fs/ubifs/log.c bud->start = wbuf->offs; bud 325 fs/ubifs/log.c c->cmt_bud_bytes += c->leb_size - bud->start; bud 327 fs/ubifs/log.c bud->lnum, bud->start, dbg_jhead(bud->jhead), bud 328 fs/ubifs/log.c c->leb_size - bud->start, c->cmt_bud_bytes); bud 337 fs/ubifs/log.c list_move(&bud->list, &c->old_buds); bud 520 fs/ubifs/log.c struct ubifs_bud *bud; bud 522 fs/ubifs/log.c bud = list_entry(c->old_buds.next, struct ubifs_bud, list); bud 523 fs/ubifs/log.c err = ubifs_return_leb(c, bud->lnum); bud 526 fs/ubifs/log.c list_del(&bud->list); bud 527 fs/ubifs/log.c kfree(bud->log_hash); bud 528 fs/ubifs/log.c kfree(bud); bud 743 fs/ubifs/log.c struct ubifs_bud *bud; bud 751 fs/ubifs/log.c list_for_each_entry(bud, &c->jheads[i].buds_list, list) bud 752 fs/ubifs/log.c bud_bytes += c->leb_size - bud->start; bud 73 fs/ubifs/replay.c struct ubifs_bud *bud; bud 95 fs/ubifs/replay.c lp = ubifs_lpt_lookup_dirty(c, b->bud->lnum); bud 102 fs/ubifs/replay.c if (b->bud->start == 0 && (lp->free != c->leb_size || lp->dirty != 0)) { bud 122 fs/ubifs/replay.c dbg_mnt("bud LEB %d was GC'd (%d free, %d dirty)", b->bud->lnum, bud 124 fs/ubifs/replay.c dbg_gc("bud LEB %d was GC'd (%d free, %d dirty)", b->bud->lnum, bud 136 fs/ubifs/replay.c b->bud->lnum, lp->free, lp->dirty, b->free, bud 147 fs/ubifs/replay.c err = ubifs_wbuf_seek_nolock(&c->jheads[b->bud->jhead].wbuf, bud 148 fs/ubifs/replay.c b->bud->lnum, c->leb_size - b->free); bud 513 fs/ubifs/replay.c static int is_last_bud(struct ubifs_info *c, struct ubifs_bud *bud) bud 515 fs/ubifs/replay.c struct ubifs_jhead *jh = &c->jheads[bud->jhead]; bud 520 fs/ubifs/replay.c if (list_is_last(&bud->list, &jh->buds_list)) bud 550 fs/ubifs/replay.c next = list_entry(bud->list.next, struct ubifs_bud, list); bud 673 fs/ubifs/replay.c int is_last = is_last_bud(c, b->bud); bud 674 fs/ubifs/replay.c int err = 0, used = 0, lnum = b->bud->lnum, offs = b->bud->start; bud 680 fs/ubifs/replay.c lnum, b->bud->jhead, offs, is_last); bud 689 fs/ubifs/replay.c sleb = ubifs_recover_leb(c, lnum, offs, c->sbuf, b->bud->jhead); bud 695 fs/ubifs/replay.c n_nodes = authenticate_sleb(c, sleb, b->bud->log_hash, is_last); bud 701 fs/ubifs/replay.c ubifs_shash_copy_state(c, b->bud->log_hash, bud 702 fs/ubifs/replay.c c->jheads[b->bud->jhead].log_hash); bud 897 fs/ubifs/replay.c struct ubifs_bud *bud; bud 903 fs/ubifs/replay.c bud = kmalloc(sizeof(struct ubifs_bud), GFP_KERNEL); bud 904 fs/ubifs/replay.c if (!bud) bud 913 fs/ubifs/replay.c bud->lnum = lnum; bud 914 fs/ubifs/replay.c bud->start = offs; bud 915 fs/ubifs/replay.c bud->jhead = jhead; bud 916 fs/ubifs/replay.c bud->log_hash = ubifs_hash_get_desc(c); bud 917 fs/ubifs/replay.c if (IS_ERR(bud->log_hash)) { bud 918 fs/ubifs/replay.c err = PTR_ERR(bud->log_hash); bud 922 fs/ubifs/replay.c ubifs_shash_copy_state(c, c->log_hash, bud->log_hash); bud 924 fs/ubifs/replay.c ubifs_add_bud(c, bud); bud 926 fs/ubifs/replay.c b->bud = bud; bud 932 fs/ubifs/replay.c kfree(bud); bud 951 fs/ubifs/replay.c struct ubifs_bud *bud; bud 967 fs/ubifs/replay.c bud = ubifs_search_bud(c, lnum); bud 968 fs/ubifs/replay.c if (bud) { bud 969 fs/ubifs/replay.c if (bud->jhead == jhead && bud->start <= offs) bud 894 fs/ubifs/super.c struct ubifs_bud *bud, *n; bud 896 fs/ubifs/super.c rbtree_postorder_for_each_entry_safe(bud, n, &c->buds, rb) bud 897 fs/ubifs/super.c kfree(bud); bud 1144 fs/ubifs/super.c struct ubifs_bud *bud; bud 1146 fs/ubifs/super.c bud = list_entry(c->old_buds.next, struct ubifs_bud, list); bud 1147 fs/ubifs/super.c list_del(&bud->list); bud 1148 fs/ubifs/super.c kfree(bud); bud 1752 fs/ubifs/ubifs.h void ubifs_add_bud(struct ubifs_info *c, struct ubifs_bud *bud); bud 363 mm/z3fold.c static inline int __idx(struct z3fold_header *zhdr, enum buddy bud) bud 365 mm/z3fold.c return (bud + zhdr->first_num) & BUDDY_MASK; bud 374 mm/z3fold.c enum buddy bud) bud 383 mm/z3fold.c if (bud == HEADLESS) bud 387 mm/z3fold.c idx = __idx(zhdr, bud); bud 389 mm/z3fold.c if (bud == LAST) bud 396 mm/z3fold.c static unsigned long encode_handle(struct z3fold_header *zhdr, enum buddy bud) bud 398 mm/z3fold.c return __encode_handle(zhdr, zhdr->slots, bud); bud 870 mm/z3fold.c enum buddy bud; bud 880 mm/z3fold.c bud = HEADLESS; bud 888 mm/z3fold.c bud = LAST; bud 890 mm/z3fold.c bud = FIRST; bud 892 mm/z3fold.c bud = LAST; bud 894 mm/z3fold.c bud = MIDDLE; bud 908 mm/z3fold.c bud = FIRST; bud 936 mm/z3fold.c zhdr = init_z3fold_page(page, bud == HEADLESS, pool, gfp); bud 943 mm/z3fold.c if (bud == HEADLESS) { bud 960 mm/z3fold.c if (bud == FIRST) bud 962 mm/z3fold.c else if (bud == LAST) bud 978 mm/z3fold.c *handle = encode_handle(zhdr, bud); bud 980 mm/z3fold.c if (bud != HEADLESS) bud 1000 mm/z3fold.c enum buddy bud; bud 1025 mm/z3fold.c bud = handle_to_buddy(handle); bud 1027 mm/z3fold.c switch (bud) { bud 1038 mm/z3fold.c pr_err("%s: unknown bud %d\n", __func__, bud); bud 260 mm/zbud.c static unsigned long encode_handle(struct zbud_header *zhdr, enum buddy bud) bud 271 mm/zbud.c if (bud == FIRST) bud 359 mm/zbud.c enum buddy bud; bud 377 mm/zbud.c bud = FIRST; bud 379 mm/zbud.c bud = LAST; bud 392 mm/zbud.c bud = FIRST; bud 395 mm/zbud.c if (bud == FIRST) bud 414 mm/zbud.c *handle = encode_handle(zhdr, bud);