Home
last modified time | relevance | path

Searched refs:jhead (Results 1 – 12 of 12) sorted by relevance

/linux-6.6.21/fs/ubifs/
Dlog.c63 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()
147 bud->start, dbg_jhead(bud->jhead), c->bud_bytes); in ubifs_add_bud()
164 int ubifs_add_bud_to_log(struct ubifs_info *c, int jhead, int lnum, int offs) in ubifs_add_bud_to_log() argument
226 bud->jhead = jhead; in ubifs_add_bud_to_log()
232 ref->jhead = cpu_to_le32(jhead); in ubifs_add_bud_to_log()
[all …]
Dreplay.c147 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()
889 static int add_replay_bud(struct ubifs_info *c, int lnum, int offs, int jhead, in add_replay_bud() argument
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()
[all …]
Djournal.c98 static int reserve_space(struct ubifs_info *c, int jhead, int len) in reserve_space() argument
101 struct ubifs_wbuf *wbuf = &c->jheads[jhead].wbuf; in reserve_space()
109 squeeze = (jhead == BASEHD); in reserve_space()
111 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in reserve_space()
139 dbg_jnl("no free space in jhead %s, run GC", dbg_jhead(jhead)); in reserve_space()
155 dbg_jhead(jhead)); in reserve_space()
165 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in reserve_space()
166 dbg_jnl("got LEB %d for jhead %s", lnum, dbg_jhead(jhead)); in reserve_space()
197 err = ubifs_add_bud_to_log(c, jhead, lnum, offs); in reserve_space()
268 static int write_head(struct ubifs_info *c, int jhead, void *buf, int len, in write_head() argument
[all …]
Dio.c500 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 …]
Drecovery.c623 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()
Dmisc.h131 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_wbuf_sync()
Dubifs.h700 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);
Ddebug.h239 const char *dbg_jhead(int jhead);
Dubifs-media.h770 __le32 jhead; member
Dgc.c682 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()
Ddebug.c197 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()
Dsuper.c839 c->jheads[i].wbuf.jhead = i; in alloc_wbufs()