Lines Matching refs:jheads

481 		err = ubifs_wbuf_sync(&c->jheads[i].wbuf);  in ubifs_sync_fs()
822 c->jheads = kcalloc(c->jhead_cnt, sizeof(struct ubifs_jhead), in alloc_wbufs()
824 if (!c->jheads) in alloc_wbufs()
829 INIT_LIST_HEAD(&c->jheads[i].buds_list); in alloc_wbufs()
830 err = ubifs_wbuf_init(c, &c->jheads[i].wbuf); in alloc_wbufs()
834 c->jheads[i].wbuf.sync_callback = &bud_wbuf_callback; in alloc_wbufs()
835 c->jheads[i].wbuf.jhead = i; in alloc_wbufs()
836 c->jheads[i].grouped = 1; in alloc_wbufs()
837 c->jheads[i].log_hash = ubifs_hash_get_desc(c); in alloc_wbufs()
838 if (IS_ERR(c->jheads[i].log_hash)) { in alloc_wbufs()
839 err = PTR_ERR(c->jheads[i].log_hash); in alloc_wbufs()
848 c->jheads[GCHD].wbuf.no_timer = 1; in alloc_wbufs()
849 c->jheads[GCHD].grouped = 0; in alloc_wbufs()
854 kfree(c->jheads[i].wbuf.buf); in alloc_wbufs()
855 kfree(c->jheads[i].wbuf.inodes); in alloc_wbufs()
859 kfree(c->jheads[i].wbuf.buf); in alloc_wbufs()
860 kfree(c->jheads[i].wbuf.inodes); in alloc_wbufs()
861 kfree(c->jheads[i].log_hash); in alloc_wbufs()
863 kfree(c->jheads); in alloc_wbufs()
864 c->jheads = NULL; in alloc_wbufs()
877 if (c->jheads) { in free_wbufs()
879 kfree(c->jheads[i].wbuf.buf); in free_wbufs()
880 kfree(c->jheads[i].wbuf.inodes); in free_wbufs()
881 kfree(c->jheads[i].log_hash); in free_wbufs()
883 kfree(c->jheads); in free_wbufs()
884 c->jheads = NULL; in free_wbufs()
1902 err = ubifs_wbuf_sync(&c->jheads[i].wbuf); in ubifs_remount_ro()
1972 err = ubifs_wbuf_sync(&c->jheads[i].wbuf); in ubifs_put_super()
1997 hrtimer_cancel(&c->jheads[i].wbuf.timer); in ubifs_put_super()