Lines Matching refs:fmc

129 	c->gc_minfree_threshold = c->fmc->flash_size / 20;  in jffs_read_super()
131 if (c->gc_minfree_threshold < c->fmc->sector_size) in jffs_read_super()
132 c->gc_minfree_threshold = c->fmc->sector_size; in jffs_read_super()
135 c->gc_maxdirty_threshold = c->fmc->flash_size / 3; in jffs_read_super()
137 if (c->gc_maxdirty_threshold < c->fmc->sector_size) in jffs_read_super()
138 c->gc_maxdirty_threshold = c->fmc->sector_size; in jffs_read_super()
197 struct jffs_fmcontrol *fmc; in jffs_setattr() local
208 fmc = c->fmc; in jffs_setattr()
211 down(&fmc->biglock); in jffs_setattr()
219 up(&fmc->biglock); in jffs_setattr()
239 up(&fmc->biglock); in jffs_setattr()
325 up(&c->fmc->biglock); in jffs_setattr()
333 up(&c->fmc->biglock); in jffs_setattr()
383 struct jffs_fmcontrol *fmc = c->fmc; in jffs_statfs() local
389 buf->f_blocks = (fmc->flash_size / PAGE_CACHE_SIZE) in jffs_statfs()
390 - (fmc->min_free_size / PAGE_CACHE_SIZE); in jffs_statfs()
391 buf->f_bfree = (jffs_free_size1(fmc) + jffs_free_size2(fmc) + in jffs_statfs()
392 fmc->dirty_size - fmc->min_free_size) in jffs_statfs()
455 down(&c->fmc->biglock); in jffs_rename()
549 up(&c->fmc->biglock); in jffs_rename()
566 down(&c->fmc->biglock); in jffs_readdir()
573 up(&c->fmc->biglock); in jffs_readdir()
589 up(&c->fmc->biglock); in jffs_readdir()
607 up(&c->fmc->biglock); in jffs_readdir()
616 up(&c->fmc->biglock); in jffs_readdir()
646 down(&c->fmc->biglock); in jffs_lookup()
669 up(&c->fmc->biglock); in jffs_lookup()
675 down(&c->fmc->biglock); in jffs_lookup()
678 up(&c->fmc->biglock); in jffs_lookup()
684 down(&c->fmc->biglock); in jffs_lookup()
687 up(&c->fmc->biglock); in jffs_lookup()
693 down(&c->fmc->biglock); in jffs_lookup()
703 up(&c->fmc->biglock); in jffs_lookup()
708 up(&c->fmc->biglock); in jffs_lookup()
738 down(&c->fmc->biglock); in jffs_do_readpage_nolock()
763 up(&c->fmc->biglock); in jffs_do_readpage_nolock()
819 down(&c->fmc->biglock); in jffs_mkdir()
886 up(&c->fmc->biglock); in jffs_mkdir()
899 down(&c->fmc->biglock); in jffs_rmdir()
902 up(&c->fmc->biglock); in jffs_rmdir()
916 down(&c->fmc->biglock); in jffs_unlink()
919 up(&c->fmc->biglock); in jffs_unlink()
1059 down(&c->fmc->biglock); in jffs_mknod()
1125 up(&c->fmc->biglock); in jffs_mknod()
1172 down(&c->fmc->biglock); in jffs_symlink()
1222 up(&c->fmc->biglock); in jffs_symlink()
1270 down(&c->fmc->biglock); in jffs_create()
1323 up(&c->fmc->biglock); in jffs_create()
1383 thiscount = min(c->fmc->max_chunk_size - sizeof(struct jffs_raw_inode), count); in jffs_file_write()
1386 down(&c->fmc->biglock); in jffs_file_write()
1470 thiscount = min(c->fmc->max_chunk_size - sizeof(struct jffs_raw_inode), count); in jffs_file_write()
1474 up(&c->fmc->biglock); in jffs_file_write()
1530 down(&c->fmc->biglock); in jffs_ioctl()
1542 struct jffs_fmcontrol *fmc = c->fmc; in jffs_ioctl() local
1552 fst.size = fmc->flash_size; in jffs_ioctl()
1553 fst.used = fmc->used_size; in jffs_ioctl()
1554 fst.dirty = fmc->dirty_size; in jffs_ioctl()
1555 fst.begin = fmc->head->offset; in jffs_ioctl()
1556 fst.end = fmc->tail->offset + fmc->tail->size; in jffs_ioctl()
1572 up(&c->fmc->biglock); in jffs_ioctl()
1650 down(&c->fmc->biglock); in jffs_read_inode()
1655 up(&c->fmc->biglock); in jffs_read_inode()
1692 up(&c->fmc->biglock); in jffs_read_inode()