Home
last modified time | relevance | path

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

/fs/ubifs/
Dlog.c75 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 …]
Djournal.c115 static int reserve_space(struct ubifs_info *c, int jhead, int len) in reserve_space() argument
118 struct ubifs_wbuf *wbuf = &c->jheads[jhead].wbuf; in reserve_space()
126 squeeze = (jhead == BASEHD); in reserve_space()
128 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in reserve_space()
156 dbg_jnl("no free space in jhead %s, run GC", dbg_jhead(jhead)); in reserve_space()
172 dbg_jhead(jhead)); in reserve_space()
182 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in reserve_space()
183 dbg_jnl("got LEB %d for jhead %s", lnum, dbg_jhead(jhead)); in reserve_space()
214 err = ubifs_add_bud_to_log(c, jhead, lnum, offs); in reserve_space()
255 static int write_node(struct ubifs_info *c, int jhead, void *node, int len, in write_node() argument
[all …]
Dreplay.c156 err = ubifs_wbuf_seek_nolock(&c->jheads[b->bud->jhead].wbuf, in set_bud_lprops()
486 struct ubifs_jhead *jh = &c->jheads[bud->jhead]; in is_last_bud()
549 lnum, b->bud->jhead, offs, is_last); in replay_bud()
558 sleb = ubifs_recover_leb(c, lnum, offs, c->sbuf, b->bud->jhead); in replay_bud()
745 static int add_replay_bud(struct ubifs_info *c, int lnum, int offs, int jhead, in add_replay_bud() argument
751 dbg_mnt("add replay bud LEB %d:%d, head %d", lnum, offs, jhead); in add_replay_bud()
765 bud->jhead = jhead; in add_replay_bud()
791 unsigned int jhead = le32_to_cpu(ref->jhead); in validate_ref() local
798 if (jhead >= c->jhead_cnt || lnum >= c->leb_cnt || in validate_ref()
806 if (bud->jhead == jhead && bud->start <= offs) in validate_ref()
[all …]
Dio.c442 dbg_io("jhead %s", dbg_jhead(wbuf->jhead)); in wbuf_timer_callback_nolock()
460 dbg_jhead(wbuf->jhead), in new_wbuf_timer_nolock()
504 wbuf->lnum, wbuf->offs, wbuf->used, dbg_jhead(wbuf->jhead)); in ubifs_wbuf_sync_nolock()
572 dbg_io("LEB %d:%d, jhead %s", lnum, offs, dbg_jhead(wbuf->jhead)); in ubifs_wbuf_seek_nolock()
630 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_bg_wbufs_sync()
652 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_bg_wbufs_sync()
682 dbg_jhead(wbuf->jhead), wbuf->lnum, wbuf->offs + wbuf->used); in ubifs_wbuf_write_nolock()
715 dbg_jhead(wbuf->jhead), wbuf->lnum, wbuf->offs); in ubifs_wbuf_write_nolock()
750 dbg_jhead(wbuf->jhead), wbuf->lnum, wbuf->offs); in ubifs_wbuf_write_nolock()
905 dbg_ntype(type), len, dbg_jhead(wbuf->jhead)); in ubifs_read_node_wbuf()
[all …]
Drecovery.c635 int offs, void *sbuf, int jhead) in ubifs_recover_leb() argument
638 int grouped = jhead == -1 ? 0 : c->jheads[jhead].grouped; in ubifs_recover_leb()
642 dbg_rcvry("%d:%d, jhead %d, grouped %d", lnum, offs, jhead, grouped); in ubifs_recover_leb()
722 if (jhead == GCHD) { in ubifs_recover_leb()
1210 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_rcvry_gc_commit()
Dubifs.h692 int jhead; member
716 int jhead; member
1525 int ubifs_add_bud_to_log(struct ubifs_info *c, int jhead, int lnum, int offs);
1765 int offs, void *sbuf, int jhead);
Dmisc.h141 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_wbuf_sync()
Dgc.c660 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_garbage_collect()
925 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_gc_end_commit()
Dubifs-media.h730 __le32 jhead; member
Ddebug.h249 const char *dbg_jhead(int jhead);
Ddebug.c206 const char *dbg_jhead(int jhead) in dbg_jhead() argument
208 switch (jhead) { in dbg_jhead()
412 pr_err("\tjhead %u\n", le32_to_cpu(ref->jhead)); in ubifs_dump_node()
620 dbg_jhead(c->jheads[i].wbuf.jhead), in ubifs_dump_budg()
728 dbg_jhead(bud->jhead)); in ubifs_dump_lprop()
Dsuper.c812 c->jheads[i].wbuf.jhead = i; in alloc_wbufs()