Home
last modified time | relevance | path

Searched refs:jheads (Results 1 – 20 of 20) sorted by relevance

/openbmc/linux/fs/ubifs/
H A Dlog.c65 if (!c->jheads) in ubifs_get_wbuf()
79 return &c->jheads[jhead].wbuf; in ubifs_get_wbuf()
132 if (c->jheads) { in ubifs_add_bud()
133 jhead = &c->jheads[bud->jhead]; in ubifs_add_bud()
271 err = ubifs_shash_copy_state(c, c->log_hash, c->jheads[jhead].log_hash); in ubifs_add_bud_to_log()
312 wbuf = &c->jheads[bud->jhead].wbuf; in remove_buds()
394 int lnum = c->jheads[i].wbuf.lnum; in ubifs_log_start_commit()
395 int offs = c->jheads[i].wbuf.offs; in ubifs_log_start_commit()
415 ubifs_shash_copy_state(c, c->log_hash, c->jheads[i].log_hash); in ubifs_log_start_commit()
751 list_for_each_entry(bud, &c->jheads[i].buds_list, list) in dbg_check_bud_bytes()
H A Dsuper.c828 if (!c->jheads) in alloc_wbufs()
839 c->jheads[i].wbuf.jhead = i; in alloc_wbufs()
840 c->jheads[i].grouped = 1; in alloc_wbufs()
853 c->jheads[GCHD].grouped = 0; in alloc_wbufs()
858 kfree(c->jheads[i].wbuf.buf); in alloc_wbufs()
863 kfree(c->jheads[i].wbuf.buf); in alloc_wbufs()
867 kfree(c->jheads); in alloc_wbufs()
868 c->jheads = NULL; in alloc_wbufs()
881 if (c->jheads) { in free_wbufs()
887 kfree(c->jheads); in free_wbufs()
[all …]
H A Dgc.c68 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; in switch_gc_head()
335 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; in move_nodes()
367 err = ubifs_shash_update(c, c->jheads[GCHD].log_hash, in move_nodes()
399 err = ubifs_shash_update(c, c->jheads[GCHD].log_hash, in move_nodes()
420 c->jheads[GCHD].log_hash); in move_nodes()
475 err = ubifs_wbuf_sync(&c->jheads[i].wbuf); in gc_sync_wbufs()
495 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; in ubifs_garbage_collect_leb()
674 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; in ubifs_garbage_collect()
957 wbuf = &c->jheads[GCHD].wbuf; in ubifs_gc_end_commit()
H A Djournal.c101 struct ubifs_wbuf *wbuf = &c->jheads[jhead].wbuf; in reserve_space()
272 struct ubifs_wbuf *wbuf = &c->jheads[jhead].wbuf; 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()
397 mutex_unlock(&c->jheads[jhead].wbuf.io_mutex); in release_head()
640 struct ubifs_wbuf *wbuf = &c->jheads[BASEHD].wbuf; in ubifs_jnl_update()
938 ubifs_wbuf_add_ino_nolock(&c->jheads[BASEHD].wbuf, in ubifs_jnl_write_inode()
1147 struct ubifs_wbuf *wbuf = &c->jheads[BASEHD].wbuf; in ubifs_jnl_xrename()
1373 struct ubifs_wbuf *wbuf = &c->jheads[BASEHD].wbuf; in ubifs_jnl_rename()
1378 ubifs_wbuf_add_ino_nolock(&c->jheads[BASEHD].wbuf, in ubifs_jnl_rename()
[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()
697 c->jheads[b->bud->jhead].log_hash); in replay_bud()
H A Ddebug.c652 if (c->jheads) in ubifs_dump_budg()
655 dbg_jhead(c->jheads[i].wbuf.jhead), in ubifs_dump_budg()
656 c->jheads[i].wbuf.lnum); in ubifs_dump_budg()
755 if (c->jheads && in ubifs_dump_lprop()
756 lp->lnum == c->jheads[i].wbuf.lnum) { in ubifs_dump_lprop()
2542 } else if (c->jheads && lnum == c->jheads[GCHD].wbuf.lnum) { in power_cut_emulated()
H A Dio.c684 struct ubifs_wbuf *wbuf = &c->jheads[i].wbuf; in ubifs_bg_wbufs_sync()
715 struct ubifs_wbuf *wbuf = &c->jheads[i].wbuf; in ubifs_bg_wbufs_sync()
1243 struct ubifs_wbuf *wbuf = &c->jheads[i].wbuf; in ubifs_sync_wbufs_by_inode()
H A Drecovery.c626 int grouped = jhead == -1 ? 0 : c->jheads[jhead].grouped; in ubifs_recover_leb()
1160 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; in ubifs_rcvry_gc_commit()
H A Dcommit.c119 err = ubifs_wbuf_sync(&c->jheads[i].wbuf); in do_commit()
H A Dlprops.c1265 err = ubifs_wbuf_sync(&c->jheads[i].wbuf); in dbg_check_lprops()
H A Dubifs.h1303 struct ubifs_jhead *jheads; member
/openbmc/u-boot/fs/ubifs/
H A Dlog.c68 if (!c->jheads) in ubifs_get_wbuf()
82 return &c->jheads[jhead].wbuf; in ubifs_get_wbuf()
135 if (c->jheads) { in ubifs_add_bud()
136 jhead = &c->jheads[bud->jhead]; in ubifs_add_bud()
306 wbuf = &c->jheads[bud->jhead].wbuf; in remove_buds()
380 int lnum = c->jheads[i].wbuf.lnum; in ubifs_log_start_commit()
381 int offs = c->jheads[i].wbuf.offs; in ubifs_log_start_commit()
733 list_for_each_entry(bud, &c->jheads[i].buds_list, list) in dbg_check_bud_bytes()
H A Dsuper.c984 if (!c->jheads) in alloc_wbufs()
995 c->jheads[i].wbuf.jhead = i; in alloc_wbufs()
996 c->jheads[i].grouped = 1; in alloc_wbufs()
1003 c->jheads[GCHD].wbuf.no_timer = 1; in alloc_wbufs()
1004 c->jheads[GCHD].grouped = 0; in alloc_wbufs()
1017 if (c->jheads) { in free_wbufs()
1019 kfree(c->jheads[i].wbuf.buf); in free_wbufs()
1020 kfree(c->jheads[i].wbuf.inodes); in free_wbufs()
1022 kfree(c->jheads); in free_wbufs()
1023 c->jheads = NULL; in free_wbufs()
[all …]
H A Dgc.c74 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; in switch_gc_head()
343 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; in move_nodes()
443 err = ubifs_wbuf_sync(&c->jheads[i].wbuf); in gc_sync_wbufs()
463 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; in ubifs_garbage_collect_leb()
642 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; in ubifs_garbage_collect()
914 wbuf = &c->jheads[GCHD].wbuf; in ubifs_gc_end_commit()
H A Dio.c625 struct ubifs_wbuf *wbuf = &c->jheads[i].wbuf; in ubifs_bg_wbufs_sync()
656 struct ubifs_wbuf *wbuf = &c->jheads[i].wbuf; in ubifs_bg_wbufs_sync()
1134 struct ubifs_wbuf *wbuf = &c->jheads[i].wbuf; in ubifs_sync_wbufs_by_inode()
H A Ddebug.c619 if (c->jheads) in ubifs_dump_budg()
622 dbg_jhead(c->jheads[i].wbuf.jhead), in ubifs_dump_budg()
623 c->jheads[i].wbuf.lnum); in ubifs_dump_budg()
727 if (c->jheads && in ubifs_dump_lprop()
728 lp->lnum == c->jheads[i].wbuf.lnum) { in ubifs_dump_lprop()
2568 } else if (c->jheads && lnum == c->jheads[GCHD].wbuf.lnum) { in power_cut_emulated()
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()
H A Drecovery.c634 int grouped = jhead == -1 ? 0 : c->jheads[jhead].grouped; in ubifs_recover_leb()
1169 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; in ubifs_rcvry_gc_commit()
H A Dlprops.c1270 err = ubifs_wbuf_sync(&c->jheads[i].wbuf); in dbg_check_lprops()
H A Dubifs.h1859 struct ubifs_jhead *jheads; member