Lines Matching refs:fs
32 errcode_t ext2fs_check_desc(ext2_filsys fs)
37 blk_t first_block = fs->super->s_first_data_block;
38 blk_t last_block = fs->super->s_blocks_count-1;
42 EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS);
44 retval = ext2fs_allocate_block_bitmap(fs, "check_desc map", &bmap);
48 for (i = 0; i < fs->group_desc_count; i++)
49 ext2fs_reserve_super_and_bgd(fs, i, bmap);
51 for (i = 0; i < fs->group_desc_count; i++) {
52 if (!EXT2_HAS_INCOMPAT_FEATURE(fs->super,
54 first_block = ext2fs_group_first_block(fs, i);
55 last_block = ext2fs_group_last_block(fs, i);
56 if (i == (fs->group_desc_count - 1))
57 last_block = fs->super->s_blocks_count-1;
63 blk = fs->group_desc[i].bg_block_bitmap;
74 blk = fs->group_desc[i].bg_inode_bitmap;
85 blk = fs->group_desc[i].bg_inode_table;
87 ((blk + fs->inode_blocks_per_group - 1) > last_block)) {
91 for (j = 0, b = blk; j < fs->inode_blocks_per_group;