/kernel/linux/linux-5.10/fs/ubifs/ |
H A D | log.c | 23 * ubifs_search_bud - search bud LEB. 27 * This function searches bud LEB @lnum. Returns bud description object in case 28 * of success and %NULL if there is no bud with this LEB number. 33 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 112 ubifs_add_bud(struct ubifs_info *c, struct ubifs_bud *bud) ubifs_add_bud() argument 167 struct ubifs_bud *bud; ubifs_add_bud_to_log() local 307 struct ubifs_bud *bud; remove_buds() local 520 struct ubifs_bud *bud; ubifs_log_post_commit() local 743 struct ubifs_bud *bud; dbg_check_bud_bytes() local [all...] |
H A D | replay.c | 65 * @list: next bud in the list 66 * @bud: bud description object 68 * @free: free bytes in the bud 69 * @dirty: dirty bytes in the bud 73 struct ubifs_bud *bud; member 80 * set_bud_lprops - set free and dirty space used by a bud. 82 * @b: bud entry which describes the bud 84 * This function makes sure the LEB properties of bud 514 is_last_bud(struct ubifs_info *c, struct ubifs_bud *bud) is_last_bud() argument 892 struct ubifs_bud *bud; add_replay_bud() local 944 struct ubifs_bud *bud; validate_ref() local [all...] |
H A D | super.c | 649 * bud_wbuf_callback - bud LEB write-buffer synchronization call-back. 657 * accounting in bud logical eraseblocks. This function returns zero in case of 734 * when number of bud bytes becomes above the limit defined below. in init_constants_sb() 919 * free_buds - free per-bud objects. 924 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 in destroy_journal() [all...] |
H A D | debug.c | 616 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() 762 pr_cont(", bud o in ubifs_dump_lprop() [all...] |
H A D | ubifs.h | 703 * struct ubifs_bud - bud logical eraseblock. 705 * @start: where the (uncommitted) bud data starts 706 * @jhead: journal head number this bud belongs to 709 * @log_hash: the log hash from the commit start node up to this bud 723 * @buds_list: list of bud LEBs belonging to this journal head 1019 * @buds: tree of all buds indexed by bud LEB number 1021 * @buds_lock: protects the @buds tree, @bud_bytes, and per-journal head bud 1026 * @bg_bud_bytes: number of bud bytes when background commit is initiated 1760 void ubifs_add_bud(struct ubifs_info *c, struct ubifs_bud *bud);
|
/kernel/linux/linux-6.6/fs/ubifs/ |
H A D | log.c | 23 * ubifs_search_bud - search bud LEB. 27 * This function searches bud LEB @lnum. Returns bud description object in case 28 * of success and %NULL if there is no bud with this LEB number. 33 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 112 ubifs_add_bud(struct ubifs_info *c, struct ubifs_bud *bud) ubifs_add_bud() argument 167 struct ubifs_bud *bud; ubifs_add_bud_to_log() local 307 struct ubifs_bud *bud; remove_buds() local 520 struct ubifs_bud *bud; ubifs_log_post_commit() local 743 struct ubifs_bud *bud; dbg_check_bud_bytes() local [all...] |
H A D | replay.c | 65 * @list: next bud in the list 66 * @bud: bud description object 68 * @free: free bytes in the bud 69 * @dirty: dirty bytes in the bud 73 struct ubifs_bud *bud; member 80 * set_bud_lprops - set free and dirty space used by a bud. 82 * @b: bud entry which describes the bud 84 * This function makes sure the LEB properties of bud 514 is_last_bud(struct ubifs_info *c, struct ubifs_bud *bud) is_last_bud() argument 892 struct ubifs_bud *bud; add_replay_bud() local 944 struct ubifs_bud *bud; validate_ref() local [all...] |
H A D | super.c | 649 * bud_wbuf_callback - bud LEB write-buffer synchronization call-back. 657 * accounting in bud logical eraseblocks. This function returns zero in case of 734 * when number of bud bytes becomes above the limit defined below. in init_constants_sb() 919 * free_buds - free per-bud objects. 924 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 in destroy_journal() [all...] |
H A D | debug.c | 616 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() 762 pr_cont(", bud o in ubifs_dump_lprop() [all...] |
H A D | ubifs.h | 712 * struct ubifs_bud - bud logical eraseblock. 714 * @start: where the (uncommitted) bud data starts 715 * @jhead: journal head number this bud belongs to 718 * @log_hash: the log hash from the commit start node up to this bud 732 * @buds_list: list of bud LEBs belonging to this journal head 1040 * @buds: tree of all buds indexed by bud LEB number 1042 * @buds_lock: protects the @buds tree, @bud_bytes, and per-journal head bud 1047 * @bg_bud_bytes: number of bud bytes when background commit is initiated 1789 void ubifs_add_bud(struct ubifs_info *c, struct ubifs_bud *bud);
|
/kernel/linux/linux-6.6/mm/ |
H A D | zbud.c | 155 static unsigned long encode_handle(struct zbud_header *zhdr, enum buddy bud) in encode_handle() argument 166 if (bud == FIRST) in encode_handle() 169 else /* bud == LAST */ 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 D | z3fold.c | 361 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() 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() 401 /* only for LAST bud, returns zero otherwise */ 558 enum buddy bud in get_free_buddy() local 370 __encode_handle(struct z3fold_header *zhdr, struct z3fold_buddy_slots *slots, enum buddy bud) __encode_handle() argument 1006 enum buddy bud; z3fold_alloc() local 1096 enum buddy bud; z3fold_free() local [all...] |
/kernel/linux/linux-5.10/mm/ |
H A D | zbud.c | 261 static unsigned long encode_handle(struct zbud_header *zhdr, enum buddy bud) in encode_handle() argument 272 if (bud == FIRST) in encode_handle() 275 else /* bud == LAST */ in encode_handle() 360 enum buddy bud; in zbud_alloc() local 377 bud = FIRST; in zbud_alloc() 379 bud = LAST; in zbud_alloc() 392 bud = FIRST; in zbud_alloc() 395 if (bud == FIRST) in zbud_alloc() 414 *handle = encode_handle(zhdr, bud); in zbud_alloc()
|
H A D | z3fold.c | 446 static inline int __idx(struct z3fold_header *zhdr, enum buddy bud) in __idx() argument 448 return (bud + zhdr->first_num) & BUDDY_MASK; in __idx() 457 enum buddy bud) in __encode_handle() 466 if (bud == HEADLESS) in __encode_handle() 470 idx = __idx(zhdr, bud); in __encode_handle() 472 if (bud == LAST) in __encode_handle() 481 static unsigned long encode_handle(struct z3fold_header *zhdr, enum buddy bud) in encode_handle() argument 483 return __encode_handle(zhdr, zhdr->slots, bud); in encode_handle() 486 /* only for LAST bud, returns zero otherwise */ 639 enum buddy bud in get_free_buddy() local 455 __encode_handle(struct z3fold_header *zhdr, struct z3fold_buddy_slots *slots, enum buddy bud) __encode_handle() argument 1095 enum buddy bud; z3fold_alloc() local 1216 enum buddy bud; z3fold_free() local [all...] |
/kernel/linux/linux-5.10/fs/jfs/ |
H A D | jfs_dmap.c | 2755 int budsz, bud, w, bsz, size; in dbBackSplit() local 2787 w = (w < bud) ? w : bud) { in dbBackSplit() 2795 bud = w ^ bsz; in dbBackSplit() 2799 if (leaf[bud] != NOFREE) { in dbBackSplit() 2803 cursz = leaf[bud] - 1; in dbBackSplit() 2804 dbSplit(tp, bud, cursz, cursz, is_ctl); in dbBackSplit()
|
/kernel/linux/linux-6.6/fs/jfs/ |
H A D | jfs_dmap.c | 2691 int budsz, bud, w, bsz, size; in dbBackSplit() local 2723 w = (w < bud) ? w : bud) { in dbBackSplit() 2731 bud = w ^ bsz; in dbBackSplit() 2735 if (leaf[bud] != NOFREE) { in dbBackSplit() 2739 cursz = leaf[bud] - 1; in dbBackSplit() 2740 dbSplit(tp, bud, cursz, cursz, is_ctl); in dbBackSplit()
|