Home
last modified time | relevance | path

Searched refs:jhead (Results 1 - 24 of 24) sorted by relevance

/kernel/linux/linux-5.10/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()
146 dbg_log("LEB %d:%d, jhead %s, bud_bytes %lld", bud->lnum, in ubifs_add_bud()
147 bud->start, dbg_jhead(bud->jhead), in ubifs_add_bud()
164 ubifs_add_bud_to_log(struct ubifs_info *c, int jhead, int lnum, int offs) ubifs_add_bud_to_log() argument
[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()
883 * @jhead: journal head to which this bud belongs
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); validate_ref() local
[all...]
H A Djournal.c90 * @jhead: journal head number
98 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()
154 dbg_jnl("GC couldn't make a free LEB for jhead %s", in reserve_space()
155 dbg_jhead(jhead)); in reserve_space()
165 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in reserve_space()
268 write_head(struct ubifs_info *c, int jhead, void *buf, int len, int *lnum, int *offs, int sync) write_head() argument
311 make_reservation(struct ubifs_info *c, int jhead, int len) make_reservation() argument
395 release_head(struct ubifs_info *c, int jhead) release_head() argument
[all...]
H A Dio.c479 dbg_io("jhead %s", dbg_jhead(wbuf->jhead)); in wbuf_timer_callback_nolock()
504 dbg_io("set timer for jhead %s, %llu-%llu millisecs", in new_wbuf_timer_nolock()
505 dbg_jhead(wbuf->jhead), in new_wbuf_timer_nolock()
547 dbg_io("LEB %d:%d, %d bytes, jhead %s", in ubifs_wbuf_sync_nolock()
548 wbuf->lnum, wbuf->offs, wbuf->used, dbg_jhead(wbuf->jhead)); in ubifs_wbuf_sync_nolock()
616 dbg_io("LEB %d:%d, jhead %s", lnum, offs, dbg_jhead(wbuf->jhead)); in ubifs_wbuf_seek_nolock()
674 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_bg_wbufs_sync()
696 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_bg_wbufs_sync()
[all...]
H A Drecovery.c614 * @jhead: journal head number this LEB belongs to (%-1 if the LEB does not
623 int offs, void *sbuf, int jhead) in ubifs_recover_leb()
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()
622 ubifs_recover_leb(struct ubifs_info *c, int lnum, int offs, void *sbuf, int jhead) ubifs_recover_leb() argument
H A Dmisc.h131 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_wbuf_sync()
H A Dubifs.h661 * @jhead: journal head the mutex belongs to (note, needed only to shut lockdep
691 int jhead; member
706 * @jhead: journal head number this bud belongs to
714 int jhead; member
1762 int ubifs_add_bud_to_log(struct ubifs_info *c, int jhead, int lnum, int offs);
2048 int offs, void *sbuf, int jhead);
H A Dubifs-media.h763 * @jhead: journal head number
770 __le32 jhead; member
H A Ddebug.h239 const char *dbg_jhead(int jhead);
H A Dgc.c682 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_garbage_collect()
955 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()
757 pr_cont(", jhead %s", dbg_jhead(i)); in ubifs_dump_lprop()
762 pr_cont(", bud of jhead %s", in ubifs_dump_lprop()
763 dbg_jhead(bud->jhead)); in ubifs_dump_lprop()
H A Dsuper.c839 c->jheads[i].wbuf.jhead = i; in alloc_wbufs()
/kernel/linux/linux-6.6/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()
146 dbg_log("LEB %d:%d, jhead %s, bud_bytes %lld", bud->lnum, in ubifs_add_bud()
147 bud->start, dbg_jhead(bud->jhead), in ubifs_add_bud()
164 ubifs_add_bud_to_log(struct ubifs_info *c, int jhead, int lnum, int offs) ubifs_add_bud_to_log() argument
[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()
883 * @jhead: journal head to which this bud belongs
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); validate_ref() local
[all...]
H A Djournal.c90 * @jhead: journal head number
98 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()
154 dbg_jnl("GC couldn't make a free LEB for jhead %s", in reserve_space()
155 dbg_jhead(jhead)); in reserve_space()
165 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in reserve_space()
268 write_head(struct ubifs_info *c, int jhead, void *buf, int len, int *lnum, int *offs, int sync) write_head() argument
311 make_reservation(struct ubifs_info *c, int jhead, int len) make_reservation() argument
395 release_head(struct ubifs_info *c, int jhead) release_head() argument
[all...]
H A Dio.c500 dbg_io("jhead %s", dbg_jhead(wbuf->jhead)); in wbuf_timer_callback_nolock()
525 dbg_io("set timer for jhead %s, %llu-%llu millisecs", in new_wbuf_timer_nolock()
526 dbg_jhead(wbuf->jhead), in new_wbuf_timer_nolock()
568 dbg_io("LEB %d:%d, %d bytes, jhead %s", in ubifs_wbuf_sync_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()
[all...]
H A Drecovery.c614 * @jhead: journal head number this LEB belongs to (%-1 if the LEB does not
623 int offs, void *sbuf, int jhead) in ubifs_recover_leb()
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()
622 ubifs_recover_leb(struct ubifs_info *c, int lnum, int offs, void *sbuf, int jhead) ubifs_recover_leb() argument
H A Dmisc.h131 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_wbuf_sync()
H A Dubifs.h670 * @jhead: journal head the mutex belongs to (note, needed only to shut lockdep
700 int jhead; member
715 * @jhead: journal head number this bud belongs to
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 Dubifs-media.h763 * @jhead: journal head number
770 __le32 jhead; member
H A Ddebug.h239 const char *dbg_jhead(int jhead);
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()
757 pr_cont(", jhead %s", dbg_jhead(i)); in ubifs_dump_lprop()
762 pr_cont(", bud of jhead %s", in ubifs_dump_lprop()
763 dbg_jhead(bud->jhead)); in ubifs_dump_lprop()
H A Dsuper.c839 c->jheads[i].wbuf.jhead = i; in alloc_wbufs()

Completed in 37 milliseconds