Home
last modified time | relevance | path

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

/openbmc/linux/fs/ubifs/
H A 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()
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 …]
H A 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()
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 …]
H A Djournal.c109 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 …]
H A 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 …]
H A 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()
H A Dmisc.h131 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_wbuf_sync()
H A 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);
H A Ddebug.h239 const char *dbg_jhead(int jhead);
H A Dubifs-media.h770 __le32 jhead; member
H A 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()
H A 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()
H A Dsuper.c839 c->jheads[i].wbuf.jhead = i; in alloc_wbufs()
/openbmc/u-boot/fs/ubifs/
H A Dlog.c66 int jhead; in ubifs_get_wbuf() local
80 jhead = bud->jhead; in ubifs_get_wbuf()
82 return &c->jheads[jhead].wbuf; in ubifs_get_wbuf()
119 struct ubifs_jhead *jhead; in ubifs_add_bud() local
136 jhead = &c->jheads[bud->jhead]; in ubifs_add_bud()
137 list_add_tail(&bud->list, &jhead->buds_list); in ubifs_add_bud()
229 bud->jhead = jhead; in ubifs_add_bud_to_log()
234 ref->jhead = cpu_to_le32(jhead); in ubifs_add_bud_to_log()
306 wbuf = &c->jheads[bud->jhead].wbuf; in remove_buds()
315 bud->lnum, bud->start, dbg_jhead(bud->jhead), in remove_buds()
[all …]
H A Dreplay.c149 err = ubifs_wbuf_seek_nolock(&c->jheads[b->bud->jhead].wbuf, in set_bud_lprops()
479 struct ubifs_jhead *jh = &c->jheads[bud->jhead]; in is_last_bud()
542 lnum, b->bud->jhead, offs, is_last); in replay_bud()
551 sleb = ubifs_recover_leb(c, lnum, offs, c->sbuf, b->bud->jhead); in replay_bud()
738 static int add_replay_bud(struct ubifs_info *c, int lnum, int offs, int jhead, in add_replay_bud() argument
744 dbg_mnt("add replay bud LEB %d:%d, head %d", lnum, offs, jhead); in add_replay_bud()
758 bud->jhead = jhead; in add_replay_bud()
784 unsigned int jhead = le32_to_cpu(ref->jhead); in validate_ref() local
791 if (jhead >= c->jhead_cnt || lnum >= c->leb_cnt || in validate_ref()
799 if (bud->jhead == jhead && bud->start <= offs) in validate_ref()
[all …]
H A Dio.c444 dbg_io("jhead %s", dbg_jhead(wbuf->jhead)); in wbuf_timer_callback_nolock()
462 dbg_jhead(wbuf->jhead), in new_wbuf_timer_nolock()
509 wbuf->lnum, wbuf->offs, wbuf->used, dbg_jhead(wbuf->jhead)); in ubifs_wbuf_sync_nolock()
577 dbg_io("LEB %d:%d, jhead %s", lnum, offs, dbg_jhead(wbuf->jhead)); in ubifs_wbuf_seek_nolock()
636 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_bg_wbufs_sync()
658 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_bg_wbufs_sync()
688 dbg_jhead(wbuf->jhead), wbuf->lnum, wbuf->offs + wbuf->used); in ubifs_wbuf_write_nolock()
721 dbg_jhead(wbuf->jhead), wbuf->lnum, wbuf->offs); in ubifs_wbuf_write_nolock()
756 dbg_jhead(wbuf->jhead), wbuf->lnum, wbuf->offs); in ubifs_wbuf_write_nolock()
912 dbg_ntype(type), len, dbg_jhead(wbuf->jhead)); in ubifs_read_node_wbuf()
[all …]
H A Drecovery.c631 int offs, void *sbuf, int jhead) in ubifs_recover_leb() argument
634 int grouped = jhead == -1 ? 0 : c->jheads[jhead].grouped; in ubifs_recover_leb()
638 dbg_rcvry("%d:%d, jhead %d, grouped %d", lnum, offs, jhead, grouped); in ubifs_recover_leb()
718 if (jhead == GCHD) { in ubifs_recover_leb()
1201 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_rcvry_gc_commit()
H A Dmisc.h129 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_wbuf_sync()
H A Dubifs.h1289 int jhead; member
1313 int jhead; member
2131 int ubifs_add_bud_to_log(struct ubifs_info *c, int jhead, int lnum, int offs);
2376 int offs, void *sbuf, int jhead);
H A Dubifs-media.h722 __le32 jhead; member
H A Dgc.c650 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_garbage_collect()
915 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_gc_end_commit()
H A Ddebug.h303 const char *dbg_jhead(int jhead);
H A Ddebug.c205 const char *dbg_jhead(int jhead) in dbg_jhead() argument
207 switch (jhead) { in dbg_jhead()
413 pr_err("\tjhead %u\n", le32_to_cpu(ref->jhead)); in ubifs_dump_node()
622 dbg_jhead(c->jheads[i].wbuf.jhead), in ubifs_dump_budg()
735 dbg_jhead(bud->jhead)); in ubifs_dump_lprop()
H A Dsuper.c995 c->jheads[i].wbuf.jhead = i; in alloc_wbufs()