/linux-6.3-rc2/fs/ubifs/ |
A D | log.c | 63 int jhead; in ubifs_get_wbuf() local 77 jhead = bud->jhead; in ubifs_get_wbuf() 79 return &c->jheads[jhead].wbuf; in ubifs_get_wbuf() 116 struct ubifs_jhead *jhead; in ubifs_add_bud() local 133 jhead = &c->jheads[bud->jhead]; in ubifs_add_bud() 134 list_add_tail(&bud->list, &jhead->buds_list); in ubifs_add_bud() 226 bud->jhead = jhead; in ubifs_add_bud_to_log() 232 ref->jhead = cpu_to_le32(jhead); in ubifs_add_bud_to_log() 312 wbuf = &c->jheads[bud->jhead].wbuf; in remove_buds() 321 bud->lnum, bud->start, dbg_jhead(bud->jhead), in remove_buds() [all …]
|
A D | replay.c | 147 err = ubifs_wbuf_seek_nolock(&c->jheads[b->bud->jhead].wbuf, in set_bud_lprops() 516 struct ubifs_jhead *jh = &c->jheads[bud->jhead]; in is_last_bud() 675 lnum, b->bud->jhead, offs, is_last); in replay_bud() 684 sleb = ubifs_recover_leb(c, lnum, offs, c->sbuf, b->bud->jhead); in replay_bud() 697 c->jheads[b->bud->jhead].log_hash); in replay_bud() 896 dbg_mnt("add replay bud LEB %d:%d, head %d", lnum, offs, jhead); in add_replay_bud() 910 bud->jhead = jhead; in add_replay_bud() 947 unsigned int jhead = le32_to_cpu(ref->jhead); in validate_ref() local 954 if (jhead >= c->jhead_cnt || lnum >= c->leb_cnt || in validate_ref() 962 if (bud->jhead == jhead && bud->start <= offs) in validate_ref() [all …]
|
A D | journal.c | 109 squeeze = (jhead == BASEHD); in reserve_space() 111 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in reserve_space() 155 dbg_jhead(jhead)); in reserve_space() 165 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in reserve_space() 274 ubifs_assert(c, jhead != GCHD); in write_head() 276 *lnum = c->jheads[jhead].wbuf.lnum; in write_head() 277 *offs = c->jheads[jhead].wbuf.offs + c->jheads[jhead].wbuf.used; in write_head() 279 dbg_jhead(jhead), *lnum, *offs, len); in write_head() 317 err = reserve_space(c, jhead, len); in make_reservation() 373 len, jhead, err); in make_reservation() [all …]
|
A D | io.c | 500 dbg_io("jhead %s", dbg_jhead(wbuf->jhead)); in wbuf_timer_callback_nolock() 526 dbg_jhead(wbuf->jhead), in new_wbuf_timer_nolock() 569 wbuf->lnum, wbuf->offs, wbuf->used, dbg_jhead(wbuf->jhead)); in ubifs_wbuf_sync_nolock() 637 dbg_io("LEB %d:%d, jhead %s", lnum, offs, dbg_jhead(wbuf->jhead)); in ubifs_wbuf_seek_nolock() 695 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_bg_wbufs_sync() 717 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_bg_wbufs_sync() 747 dbg_jhead(wbuf->jhead), wbuf->lnum, wbuf->offs + wbuf->used); in ubifs_wbuf_write_nolock() 784 dbg_jhead(wbuf->jhead), wbuf->lnum, wbuf->offs); in ubifs_wbuf_write_nolock() 817 dbg_jhead(wbuf->jhead), wbuf->lnum, wbuf->offs); in ubifs_wbuf_write_nolock() 1027 dbg_ntype(type), len, dbg_jhead(wbuf->jhead)); in ubifs_read_node_wbuf() [all …]
|
A D | recovery.c | 623 int offs, void *sbuf, int jhead) in ubifs_recover_leb() argument 626 int grouped = jhead == -1 ? 0 : c->jheads[jhead].grouped; in ubifs_recover_leb() 630 dbg_rcvry("%d:%d, jhead %d, grouped %d", lnum, offs, jhead, grouped); in ubifs_recover_leb() 710 if (jhead == GCHD) { in ubifs_recover_leb() 1192 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_rcvry_gc_commit()
|
A D | misc.h | 131 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_wbuf_sync()
|
A D | ubifs.h | 700 int jhead; member 723 int jhead; member 1791 int ubifs_add_bud_to_log(struct ubifs_info *c, int jhead, int lnum, int offs); 2080 int offs, void *sbuf, int jhead);
|
A D | debug.h | 239 const char *dbg_jhead(int jhead);
|
A D | ubifs-media.h | 770 __le32 jhead; member
|
A D | gc.c | 682 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_garbage_collect() 958 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_gc_end_commit()
|
A D | debug.c | 197 const char *dbg_jhead(int jhead) in dbg_jhead() argument 199 switch (jhead) { in dbg_jhead() 435 pr_err("\tjhead %u\n", le32_to_cpu(ref->jhead)); in ubifs_dump_node() 655 dbg_jhead(c->jheads[i].wbuf.jhead), in ubifs_dump_budg() 763 dbg_jhead(bud->jhead)); in ubifs_dump_lprop()
|
A D | super.c | 839 c->jheads[i].wbuf.jhead = i; in alloc_wbufs()
|