Lines Matching refs:jheads
485 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()
843 err = PTR_ERR(c->jheads[i].log_hash); in alloc_wbufs()
852 c->jheads[GCHD].wbuf.no_timer = 1; in alloc_wbufs()
853 c->jheads[GCHD].grouped = 0; in alloc_wbufs()
859 kfree(c->jheads[i].log_hash); in alloc_wbufs()
872 if (c->jheads) { in free_wbufs()
874 kfree(c->jheads[i].wbuf.buf); in free_wbufs()
875 kfree(c->jheads[i].wbuf.inodes); in free_wbufs()
876 kfree(c->jheads[i].log_hash); in free_wbufs()
878 kfree(c->jheads); in free_wbufs()
879 c->jheads = NULL; in free_wbufs()
1894 err = ubifs_wbuf_sync(&c->jheads[i].wbuf); in ubifs_remount_ro()
1964 err = ubifs_wbuf_sync(&c->jheads[i].wbuf); in ubifs_put_super()
1989 hrtimer_cancel(&c->jheads[i].wbuf.timer); in ubifs_put_super()