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()
858 kfree(c->jheads[i].wbuf.buf); in alloc_wbufs()
859 kfree(c->jheads[i].wbuf.inodes); in alloc_wbufs()
863 kfree(c->jheads[i].wbuf.buf); in alloc_wbufs()
864 kfree(c->jheads[i].wbuf.inodes); in alloc_wbufs()
865 kfree(c->jheads[i].log_hash); in alloc_wbufs()
867 kfree(c->jheads); in alloc_wbufs()
868 c->jheads = NULL; in alloc_wbufs()
881 if (c->jheads) { in free_wbufs()
883 kfree(c->jheads[i].wbuf.buf); in free_wbufs()
884 kfree(c->jheads[i].wbuf.inodes); in free_wbufs()
885 kfree(c->jheads[i].log_hash); in free_wbufs()
887 kfree(c->jheads); in free_wbufs()
888 c->jheads = NULL; in free_wbufs()
1903 err = ubifs_wbuf_sync(&c->jheads[i].wbuf); in ubifs_remount_ro()
1973 err = ubifs_wbuf_sync(&c->jheads[i].wbuf); in ubifs_put_super()
1998 hrtimer_cancel(&c->jheads[i].wbuf.timer); in ubifs_put_super()