Lines Matching refs:c

88 	struct jffs2_sb_info *c = JFFS2_SB_INFO(root->d_sb);  in jffs2_show_options()  local
89 struct jffs2_mount_opts *opts = &c->mount_opts; in jffs2_show_options()
101 struct jffs2_sb_info *c = JFFS2_SB_INFO(sb); in jffs2_sync_fs() local
104 cancel_delayed_work_sync(&c->wbuf_dwork); in jffs2_sync_fs()
107 mutex_lock(&c->alloc_sem); in jffs2_sync_fs()
108 jffs2_flush_wbuf_pad(c); in jffs2_sync_fs()
109 mutex_unlock(&c->alloc_sem); in jffs2_sync_fs()
178 static int jffs2_parse_options(struct jffs2_sb_info *c, char *data) in jffs2_parse_options() argument
201 c->mount_opts.compr = JFFS2_COMPR_MODE_NONE; in jffs2_parse_options()
204 c->mount_opts.compr = JFFS2_COMPR_MODE_FORCELZO; in jffs2_parse_options()
208 c->mount_opts.compr = in jffs2_parse_options()
218 c->mount_opts.override_compr = true; in jffs2_parse_options()
224 if (opt > c->mtd->size) { in jffs2_parse_options()
226 "is %llu KB\n", c->mtd->size / 1024); in jffs2_parse_options()
229 c->mount_opts.rp_size = opt; in jffs2_parse_options()
243 struct jffs2_sb_info *c = JFFS2_SB_INFO(sb); in jffs2_remount_fs() local
247 err = jffs2_parse_options(c, data); in jffs2_remount_fs()
272 struct jffs2_sb_info *c; in jffs2_fill_super() local
279 c = kzalloc(sizeof(*c), GFP_KERNEL); in jffs2_fill_super()
280 if (!c) in jffs2_fill_super()
283 c->mtd = sb->s_mtd; in jffs2_fill_super()
284 c->os_priv = sb; in jffs2_fill_super()
285 sb->s_fs_info = c; in jffs2_fill_super()
287 ret = jffs2_parse_options(c, data); in jffs2_fill_super()
289 kfree(c); in jffs2_fill_super()
295 mutex_init(&c->alloc_sem); in jffs2_fill_super()
296 mutex_init(&c->erase_free_sem); in jffs2_fill_super()
297 init_waitqueue_head(&c->erase_wait); in jffs2_fill_super()
298 init_waitqueue_head(&c->inocache_wq); in jffs2_fill_super()
299 spin_lock_init(&c->erase_completion_lock); in jffs2_fill_super()
300 spin_lock_init(&c->inocache_lock); in jffs2_fill_super()
322 struct jffs2_sb_info *c = JFFS2_SB_INFO(sb); in jffs2_put_super() local
326 mutex_lock(&c->alloc_sem); in jffs2_put_super()
327 jffs2_flush_wbuf_pad(c); in jffs2_put_super()
328 mutex_unlock(&c->alloc_sem); in jffs2_put_super()
330 jffs2_sum_exit(c); in jffs2_put_super()
332 jffs2_free_ino_caches(c); in jffs2_put_super()
333 jffs2_free_raw_node_refs(c); in jffs2_put_super()
334 if (jffs2_blocks_use_vmalloc(c)) in jffs2_put_super()
335 vfree(c->blocks); in jffs2_put_super()
337 kfree(c->blocks); in jffs2_put_super()
338 jffs2_flash_cleanup(c); in jffs2_put_super()
339 kfree(c->inocache_list); in jffs2_put_super()
340 jffs2_clear_xattr_subsystem(c); in jffs2_put_super()
341 mtd_sync(c->mtd); in jffs2_put_super()
347 struct jffs2_sb_info *c = JFFS2_SB_INFO(sb); in jffs2_kill_sb() local
349 jffs2_stop_garbage_collect_thread(c); in jffs2_kill_sb()
351 kfree(c); in jffs2_kill_sb()