/linux-4.19.296/fs/ubifs/ |
D | log.c | 75 int jhead; in ubifs_get_wbuf() local 89 jhead = bud->jhead; in ubifs_get_wbuf() 91 return &c->jheads[jhead].wbuf; in ubifs_get_wbuf() 128 struct ubifs_jhead *jhead; in ubifs_add_bud() local 145 jhead = &c->jheads[bud->jhead]; in ubifs_add_bud() 146 list_add_tail(&bud->list, &jhead->buds_list); in ubifs_add_bud() 159 bud->start, dbg_jhead(bud->jhead), c->bud_bytes); in ubifs_add_bud() 176 int ubifs_add_bud_to_log(struct ubifs_info *c, int jhead, int lnum, int offs) in ubifs_add_bud_to_log() argument 238 bud->jhead = jhead; in ubifs_add_bud_to_log() 243 ref->jhead = cpu_to_le32(jhead); in ubifs_add_bud_to_log() [all …]
|
D | journal.c | 104 static int reserve_space(struct ubifs_info *c, int jhead, int len) in reserve_space() argument 107 struct ubifs_wbuf *wbuf = &c->jheads[jhead].wbuf; in reserve_space() 115 squeeze = (jhead == BASEHD); in reserve_space() 117 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in reserve_space() 145 dbg_jnl("no free space in jhead %s, run GC", dbg_jhead(jhead)); in reserve_space() 161 dbg_jhead(jhead)); in reserve_space() 171 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in reserve_space() 172 dbg_jnl("got LEB %d for jhead %s", lnum, dbg_jhead(jhead)); in reserve_space() 203 err = ubifs_add_bud_to_log(c, jhead, lnum, offs); in reserve_space() 244 static int write_node(struct ubifs_info *c, int jhead, void *node, int len, in write_node() argument [all …]
|
D | replay.c | 156 err = ubifs_wbuf_seek_nolock(&c->jheads[b->bud->jhead].wbuf, in set_bud_lprops() 522 struct ubifs_jhead *jh = &c->jheads[bud->jhead]; in is_last_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() 781 static int add_replay_bud(struct ubifs_info *c, int lnum, int offs, int jhead, in add_replay_bud() argument 787 dbg_mnt("add replay bud LEB %d:%d, head %d", lnum, offs, jhead); in add_replay_bud() 801 bud->jhead = jhead; in add_replay_bud() 827 unsigned int jhead = le32_to_cpu(ref->jhead); in validate_ref() local 834 if (jhead >= c->jhead_cnt || lnum >= c->leb_cnt || in validate_ref() 842 if (bud->jhead == jhead && bud->start <= offs) in validate_ref() [all …]
|
D | io.c | 454 dbg_io("jhead %s", dbg_jhead(wbuf->jhead)); in wbuf_timer_callback_nolock() 480 dbg_jhead(wbuf->jhead), in new_wbuf_timer_nolock() 523 wbuf->lnum, wbuf->offs, wbuf->used, dbg_jhead(wbuf->jhead)); in ubifs_wbuf_sync_nolock() 591 dbg_io("LEB %d:%d, jhead %s", lnum, offs, dbg_jhead(wbuf->jhead)); in ubifs_wbuf_seek_nolock() 649 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_bg_wbufs_sync() 671 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_bg_wbufs_sync() 701 dbg_jhead(wbuf->jhead), wbuf->lnum, wbuf->offs + wbuf->used); in ubifs_wbuf_write_nolock() 738 dbg_jhead(wbuf->jhead), wbuf->lnum, wbuf->offs); in ubifs_wbuf_write_nolock() 773 dbg_jhead(wbuf->jhead), wbuf->lnum, wbuf->offs); in ubifs_wbuf_write_nolock() 959 dbg_ntype(type), len, dbg_jhead(wbuf->jhead)); in ubifs_read_node_wbuf() [all …]
|
D | recovery.c | 634 int offs, void *sbuf, int jhead) in ubifs_recover_leb() argument 637 int grouped = jhead == -1 ? 0 : c->jheads[jhead].grouped; in ubifs_recover_leb() 641 dbg_rcvry("%d:%d, jhead %d, grouped %d", lnum, offs, jhead, grouped); in ubifs_recover_leb() 721 if (jhead == GCHD) { in ubifs_recover_leb() 1203 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_rcvry_gc_commit()
|
D | misc.h | 143 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_wbuf_sync()
|
D | ubifs.h | 691 int jhead; member 713 int jhead; member 1522 int ubifs_add_bud_to_log(struct ubifs_info *c, int jhead, int lnum, int offs); 1802 int offs, void *sbuf, int jhead);
|
D | ubifs-media.h | 745 __le32 jhead; member
|
D | debug.h | 251 const char *dbg_jhead(int jhead);
|
D | gc.c | 656 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_garbage_collect() 917 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_gc_end_commit()
|
D | debug.c | 207 const char *dbg_jhead(int jhead) in dbg_jhead() argument 209 switch (jhead) { in dbg_jhead() 415 pr_err("\tjhead %u\n", le32_to_cpu(ref->jhead)); in ubifs_dump_node() 624 dbg_jhead(c->jheads[i].wbuf.jhead), in ubifs_dump_budg() 732 dbg_jhead(bud->jhead)); in ubifs_dump_lprop()
|
D | super.c | 817 c->jheads[i].wbuf.jhead = i; in alloc_wbufs()
|