Lines Matching refs:fs
100 static void determine_fs_stride(ext2_filsys fs)
107 if (fs->stride)
110 for (group = 0; group < fs->group_desc_count; group++) {
111 has_sb = ext2fs_bg_has_super(fs, group);
114 b_stride = fs->group_desc[group].bg_block_bitmap -
115 fs->group_desc[group-1].bg_block_bitmap -
116 fs->super->s_blocks_per_group;
117 i_stride = fs->group_desc[group].bg_inode_bitmap -
118 fs->group_desc[group-1].bg_inode_bitmap -
119 fs->super->s_blocks_per_group;
132 if (fs->group_desc_count > 12 && num < 3)
136 fs->stride = sum / num;
138 fs->stride = 0;
140 fs->super->s_raid_stride = fs->stride;
141 ext2fs_mark_super_dirty(fs);
144 if (fs->stride)
145 printf("Using RAID stride of %d\n", fs->stride);
152 ext2_filsys fs;
308 0, 0, io_ptr, &fs);
320 if (fs->super->s_feature_compat & ~EXT2_LIB_FEATURE_COMPAT_SUPP) {
336 if ((fs->super->s_feature_incompat & EXT4_FEATURE_INCOMPAT_FLEX_BG) &&
337 !(fs->super->s_feature_compat & EXT2_FEATURE_COMPAT_RESIZE_INODE)) {
345 min_size = calculate_minimum_resize_size(fs);
348 if (!force && ((fs->super->s_state & EXT2_ERROR_FS) ||
349 ((fs->super->s_state & EXT2_VALID_FS) == 0))) {
377 retval = ext2fs_get_device_size2(device_name, fs->blocksize,
388 fs->super->s_log_block_size);
405 if (sys_page_size > fs->blocksize)
406 new_size &= ~((sys_page_size / fs->blocksize)-1);
415 if (use_stride >= (int) fs->super->s_blocks_per_group) {
420 fs->stride = fs->super->s_raid_stride = use_stride;
421 ext2fs_mark_super_dirty(fs);
423 determine_fs_stride(fs);
430 new_file_size = ((__u64) new_size) * fs->blocksize;
444 fs->blocksize / 1024, new_size);
447 if (new_size == fs->super->s_blocks_count) {
453 retval = online_resize_fs(fs, mtpt, &new_size, flags);
455 if (!force && ((fs->super->s_lastcheck < fs->super->s_mtime) ||
456 (fs->super->s_state & EXT2_ERROR_FS) ||
457 ((fs->super->s_state & EXT2_VALID_FS) == 0))) {
465 device_name, new_size, fs->blocksize / 1024);
466 retval = resize_fs(fs, &new_size, flags,
478 ext2fs_close(fs);