Home | History | Annotate | Download | only in ext2fs

Lines Matching refs:fs

27 static int expand_dir_proc(ext2_filsys	fs,
44 retval = ext2fs_new_block(fs, last_blk, 0, &new_blk);
50 retval = ext2fs_new_dir_block(fs, 0, 0, &block);
56 retval = ext2fs_write_dir_block(fs, new_blk, block);
58 retval = ext2fs_get_mem(fs->blocksize, &block);
63 memset(block, 0, fs->blocksize);
64 retval = io_channel_write_blk(fs->io, new_blk, 1, block);
72 ext2fs_block_alloc_stats(fs, new_blk, +1);
81 errcode_t ext2fs_expand_dir(ext2_filsys fs, ext2_ino_t dir)
87 EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS);
89 if (!(fs->flags & EXT2_FLAG_RW))
92 if (!fs->block_map)
95 retval = ext2fs_check_directory(fs, dir);
103 retval = ext2fs_block_iterate2(fs, dir, BLOCK_FLAG_APPEND,
114 retval = ext2fs_read_inode(fs, dir, &inode);
118 inode.i_size += fs->blocksize;
119 inode.i_blocks += (fs->blocksize / 512) * es.newblocks;
121 retval = ext2fs_write_inode(fs, dir, &inode);