Lines Matching refs:fs
29 struct ext2_data *fs = filp->mp->fs_data; in ext2_open() local
31 if (fs->open_files >= CONFIG_MAX_FILES) { in ext2_open()
54 rc = ext2_lookup_inode(fs, &args); in ext2_open()
72 rc = ext2_inode_get(fs, 0, &new_inode); in ext2_open()
244 struct ext2_data *fs = mountp->fs_data; in ext2_mkdir() local
255 rc = ext2_lookup_inode(fs, &args); in ext2_mkdir()
271 rc = ext2_inode_get(fs, 0, &found_inode); in ext2_mkdir()
293 struct ext2_data *fs = dirp->mp->fs_data; in ext2_opendir() local
300 rc = ext2_lookup_inode(fs, &args); in ext2_opendir()
371 struct ext2_data *fs = NULL; in ext2_mount() local
378 ret = ext2_init_storage(&fs, mountp->storage_dev, mountp->flags); in ext2_mount()
383 fs->flags = 0; in ext2_mount()
385 fs->flags |= EXT2_DATA_FLAGS_RO; in ext2_mount()
388 ret = fs->backend_ops->read_superblock(fs, &superblock); in ext2_mount()
395 fs->block_size = 1024 << superblock.s_log_block_size; in ext2_mount()
398 fs->block_size = 1024 << superblock.s_log_block_size; in ext2_mount()
399 fs->flags |= EXT2_DATA_FLAGS_RO; in ext2_mount()
404 fs->block_size = ext2_default_cfg.block_size; in ext2_mount()
411 if (fs->block_size % fs->write_size != 0) { in ext2_mount()
413 fs->block_size, fs->write_size); in ext2_mount()
418 ext2_init_blocks_slab(fs); in ext2_mount()
424 ret = ext2_format(fs, &ext2_default_cfg); in ext2_mount()
434 ret = ext2_init_fs(fs); in ext2_mount()
439 mountp->fs_data = fs; in ext2_mount()
443 ext2_close_struct(fs); in ext2_mount()
452 struct ext2_data *fs; in ext2_mkfs() local
459 ret = ext2_init_storage(&fs, (const void *)dev_id, flags); in ext2_mkfs()
465 fs->block_size = cfg->block_size; in ext2_mkfs()
467 ext2_init_blocks_slab(fs); in ext2_mkfs()
470 ret = ext2_format(fs, cfg); in ext2_mkfs()
476 ext2_close_struct(fs); in ext2_mkfs()
485 struct ext2_data *fs = mountp->fs_data; in ext2_unmount() local
487 ret = ext2_close_fs(fs); in ext2_unmount()
492 ret = ext2_close_struct(fs); in ext2_unmount()
503 struct ext2_data *fs = mountp->fs_data; in ext2_unlink() local
514 rc = ext2_lookup_inode(fs, &args); in ext2_unlink()
535 struct ext2_data *fs = mountp->fs_data; in ext2_rename() local
556 rc = ext2_lookup_inode(fs, &args_from); in ext2_rename()
561 rc = ext2_lookup_inode(fs, &args_to); in ext2_rename()
584 struct ext2_data *fs = mountp->fs_data; in ext2_stat() local
594 rc = ext2_lookup_inode(fs, &args); in ext2_stat()
613 struct ext2_data *fs = mountp->fs_data; in ext2_statvfs() local
615 stat->f_bsize = fs->block_size; in ext2_statvfs()
616 stat->f_frsize = fs->block_size; in ext2_statvfs()
617 stat->f_blocks = fs->sblock.s_blocks_count; in ext2_statvfs()
618 stat->f_bfree = fs->sblock.s_free_blocks_count; in ext2_statvfs()