Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/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.c485 err = ubifs_wbuf_sync(&c->jheads[i].wbuf); in ubifs_sync_fs()
826 c->jheads = kcalloc(c->jhead_cnt, sizeof(struct ubifs_jhead), in alloc_wbufs()
828 if (!c->jheads) in alloc_wbufs()
833 INIT_LIST_HEAD(&c->jheads[i].buds_list); in alloc_wbufs()
834 err = ubifs_wbuf_init(c, &c->jheads[i].wbuf); in alloc_wbufs()
838 c->jheads[i].wbuf.sync_callback = &bud_wbuf_callback; in alloc_wbufs()
839 c->jheads[i].wbuf.jhead = i; in alloc_wbufs()
840 c->jheads[i].grouped = 1; in alloc_wbufs()
841 c->jheads[i].log_hash = ubifs_hash_get_desc(c); in alloc_wbufs()
842 if (IS_ERR(c->jheads[i].log_hash)) { in alloc_wbufs()
[all …]
H A Dgc.c68 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; in switch_gc_head()
334 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; in move_nodes()
366 err = ubifs_shash_update(c, c->jheads[GCHD].log_hash, in move_nodes()
398 err = ubifs_shash_update(c, c->jheads[GCHD].log_hash, in move_nodes()
419 c->jheads[GCHD].log_hash); in move_nodes()
474 err = ubifs_wbuf_sync(&c->jheads[i].wbuf); in gc_sync_wbufs()
494 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; in ubifs_garbage_collect_leb()
673 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; in ubifs_garbage_collect()
941 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()
282 err = ubifs_hash_nodes(c, buf, len, c->jheads[jhead].log_hash); 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()
803 ubifs_wbuf_add_ino_nolock(&c->jheads[DATAHD].wbuf, key_inum(c, key)); in ubifs_jnl_write_data()
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()
[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.c615 if (c->jheads) in ubifs_dump_budg()
618 dbg_jhead(c->jheads[i].wbuf.jhead), in ubifs_dump_budg()
619 c->jheads[i].wbuf.lnum); in ubifs_dump_budg()
718 if (c->jheads && in ubifs_dump_lprop()
719 lp->lnum == c->jheads[i].wbuf.lnum) { in ubifs_dump_lprop()
2522 } else if (c->jheads && lnum == c->jheads[GCHD].wbuf.lnum) { in power_cut_emulated()
H A Dio.c674 struct ubifs_wbuf *wbuf = &c->jheads[i].wbuf; in ubifs_bg_wbufs_sync()
705 struct ubifs_wbuf *wbuf = &c->jheads[i].wbuf; in ubifs_bg_wbufs_sync()
1235 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()
1193 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 Dubifs.h1278 struct ubifs_jhead *jheads; member
H A Dlprops.c1265 err = ubifs_wbuf_sync(&c->jheads[i].wbuf); in dbg_check_lprops()
/OK3568_Linux_fs/u-boot/fs/ubifs/
H A Dlog.c69 if (!c->jheads) in ubifs_get_wbuf()
83 return &c->jheads[jhead].wbuf; in ubifs_get_wbuf()
136 if (c->jheads) { in ubifs_add_bud()
137 jhead = &c->jheads[bud->jhead]; in ubifs_add_bud()
307 wbuf = &c->jheads[bud->jhead].wbuf; in remove_buds()
381 int lnum = c->jheads[i].wbuf.lnum; in ubifs_log_start_commit()
382 int offs = c->jheads[i].wbuf.offs; in ubifs_log_start_commit()
734 list_for_each_entry(bud, &c->jheads[i].buds_list, list) in dbg_check_bud_bytes()
H A Dsuper.c650 err = ubifs_wbuf_sync(&c->jheads[i].wbuf); in ubifs_sync_fs()
983 c->jheads = kcalloc(c->jhead_cnt, sizeof(struct ubifs_jhead), in alloc_wbufs()
985 if (!c->jheads) in alloc_wbufs()
990 INIT_LIST_HEAD(&c->jheads[i].buds_list); in alloc_wbufs()
991 err = ubifs_wbuf_init(c, &c->jheads[i].wbuf); in alloc_wbufs()
995 c->jheads[i].wbuf.sync_callback = &bud_wbuf_callback; in alloc_wbufs()
996 c->jheads[i].wbuf.jhead = i; in alloc_wbufs()
997 c->jheads[i].grouped = 1; in alloc_wbufs()
1004 c->jheads[GCHD].wbuf.no_timer = 1; in alloc_wbufs()
1005 c->jheads[GCHD].grouped = 0; in alloc_wbufs()
[all …]
H A Dgc.c75 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; in switch_gc_head()
344 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; in move_nodes()
444 err = ubifs_wbuf_sync(&c->jheads[i].wbuf); in gc_sync_wbufs()
464 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; in ubifs_garbage_collect_leb()
643 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; in ubifs_garbage_collect()
915 wbuf = &c->jheads[GCHD].wbuf; in ubifs_gc_end_commit()
H A Ddebug.c620 if (c->jheads) in ubifs_dump_budg()
623 dbg_jhead(c->jheads[i].wbuf.jhead), in ubifs_dump_budg()
624 c->jheads[i].wbuf.lnum); in ubifs_dump_budg()
728 if (c->jheads && in ubifs_dump_lprop()
729 lp->lnum == c->jheads[i].wbuf.lnum) { in ubifs_dump_lprop()
2569 } else if (c->jheads && lnum == c->jheads[GCHD].wbuf.lnum) { in power_cut_emulated()
H A Dio.c626 struct ubifs_wbuf *wbuf = &c->jheads[i].wbuf; in ubifs_bg_wbufs_sync()
657 struct ubifs_wbuf *wbuf = &c->jheads[i].wbuf; in ubifs_bg_wbufs_sync()
1135 struct ubifs_wbuf *wbuf = &c->jheads[i].wbuf; in ubifs_sync_wbufs_by_inode()
H A Dreplay.c150 err = ubifs_wbuf_seek_nolock(&c->jheads[b->bud->jhead].wbuf, in set_bud_lprops()
480 struct ubifs_jhead *jh = &c->jheads[bud->jhead]; in is_last_bud()
H A Drecovery.c635 int grouped = jhead == -1 ? 0 : c->jheads[jhead].grouped; in ubifs_recover_leb()
1170 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; in ubifs_rcvry_gc_commit()
H A Dlprops.c1271 err = ubifs_wbuf_sync(&c->jheads[i].wbuf); in dbg_check_lprops()
H A Dubifs.h1860 struct ubifs_jhead *jheads; member