Home | History | Annotate | Download | only in ext2fs

Lines Matching refs:fs

52 errcode_t ext2fs_allocate_inode_bitmap(ext2_filsys fs,
58 EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS);
60 fs->write_bitmaps = ext2fs_write_bitmaps;
63 end = fs->super->s_inodes_count;
64 real_end = (EXT2_INODES_PER_GROUP(fs->super) * fs->group_desc_count);
67 if (fs->flags & EXT2_FLAG_64BITS)
68 return (ext2fs_alloc_generic_bmap(fs,
70 fs->default_bitmap_type,
78 return (ext2fs_make_generic_bitmap(EXT2_ET_MAGIC_INODE_BITMAP, fs,
84 errcode_t ext2fs_allocate_block_bitmap(ext2_filsys fs,
90 EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS);
92 fs->write_bitmaps = ext2fs_write_bitmaps;
94 start = EXT2FS_B2C(fs, fs->super->s_first_data_block);
95 end = EXT2FS_B2C(fs, ext2fs_blocks_count(fs->super)-1);
96 real_end = ((__u64) EXT2_CLUSTERS_PER_GROUP(fs->super)
97 * (__u64) fs->group_desc_count)-1 + start;
99 if (fs->flags & EXT2_FLAG_64BITS)
100 return (ext2fs_alloc_generic_bmap(fs,
102 fs->default_bitmap_type,
108 return (ext2fs_make_generic_bitmap(EXT2_ET_MAGIC_BLOCK_BITMAP, fs,
121 errcode_t ext2fs_allocate_subcluster_bitmap(ext2_filsys fs,
129 EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS);
131 fs->write_bitmaps = ext2fs_write_bitmaps;
133 if (!fs->cluster_ratio_bits)
134 return ext2fs_allocate_block_bitmap(fs, descr, ret);
136 if ((fs->flags & EXT2_FLAG_64BITS) == 0)
139 start = fs->super->s_first_data_block;
140 end = ext2fs_blocks_count(fs->super)-1;
141 real_end = ((__u64) EXT2_BLOCKS_PER_GROUP(fs->super)
142 * (__u64) fs->group_desc_count)-1 + start;
144 retval = ext2fs_alloc_generic_bmap(fs, EXT2_ET_MAGIC_BLOCK_BITMAP64,
145 fs->default_bitmap_type, start,