Lines Matching refs:newsize
759 static int ext2_block_relocate_grow(struct ext2_fs *fs, struct ext2_block_relocator_state *state, blk_t newsize)
765 newgdblocks = ped_div_round_up (newsize
828 static int ext2_block_relocate_shrink(struct ext2_fs *fs, struct ext2_block_relocator_state *state, blk_t newsize)
848 if (newsize >= offset + EXT2_SUPER_BLOCKS_PER_GROUP(fs->sb))
853 if (newsize <= offset)
876 start = newsize;
902 int ext2_block_relocate(struct ext2_fs *fs, blk_t newsize)
916 if (newsize < EXT2_SUPER_BLOCKS_COUNT(fs->sb))
917 return ext2_block_relocate_shrink(fs, &state, newsize);
919 return ext2_block_relocate_grow(fs, &state, newsize);