Lines Matching refs:sb

209 	struct ext2_disk_superblock *sb =  in ext2_format()  local
212 memset(sb, 0, 1024); in ext2_format()
213 sb->s_inodes_count = sys_cpu_to_le32(inodes_count); in ext2_format()
214 sb->s_blocks_count = sys_cpu_to_le32(blocks_count); in ext2_format()
215 sb->s_r_blocks_count = sys_cpu_to_le32(0); in ext2_format()
216 sb->s_free_blocks_count = sys_cpu_to_le32(free_blocks); in ext2_format()
217 sb->s_free_inodes_count = sys_cpu_to_le32(inodes_count - used_inodes); in ext2_format()
218 sb->s_first_data_block = sys_cpu_to_le32(first_data_block); in ext2_format()
219 sb->s_log_block_size = sys_cpu_to_le32(block_log_size); in ext2_format()
220 sb->s_log_frag_size = sys_cpu_to_le32(block_log_size); in ext2_format()
221 sb->s_blocks_per_group = sys_cpu_to_le32(cfg->block_size * 8); in ext2_format()
222 sb->s_frags_per_group = sys_cpu_to_le32(cfg->block_size * 8); in ext2_format()
223 sb->s_inodes_per_group = sys_cpu_to_le32(inodes_count); in ext2_format()
224 sb->s_mtime = sys_cpu_to_le32(0); in ext2_format()
225 sb->s_wtime = sys_cpu_to_le32(0); in ext2_format()
226 sb->s_mnt_count = sys_cpu_to_le32(0); in ext2_format()
227 sb->s_max_mnt_count = sys_cpu_to_le32(-1); in ext2_format()
228 sb->s_magic = sys_cpu_to_le32(0xEF53); in ext2_format()
229 sb->s_state = sys_cpu_to_le32(EXT2_VALID_FS); in ext2_format()
230 sb->s_errors = sys_cpu_to_le32(EXT2_ERRORS_RO); in ext2_format()
231 sb->s_minor_rev_level = sys_cpu_to_le32(0); in ext2_format()
232 sb->s_lastcheck = sys_cpu_to_le32(0); in ext2_format()
233 sb->s_checkinterval = sys_cpu_to_le32(0); in ext2_format()
234 sb->s_creator_os = sys_cpu_to_le32(5); /* Unknown OS */ in ext2_format()
235 sb->s_rev_level = sys_cpu_to_le32(EXT2_DYNAMIC_REV); in ext2_format()
236 sb->s_def_resuid = sys_cpu_to_le32(0); in ext2_format()
237 sb->s_def_resgid = sys_cpu_to_le32(0); in ext2_format()
238 sb->s_first_ino = sys_cpu_to_le32(11); in ext2_format()
239 sb->s_inode_size = sys_cpu_to_le32(sizeof(struct ext2_disk_inode)); in ext2_format()
240 sb->s_block_group_nr = sys_cpu_to_le32(0); in ext2_format()
241 sb->s_feature_compat = sys_cpu_to_le32(0); in ext2_format()
242 sb->s_feature_incompat = sys_cpu_to_le32(EXT2_FEATURE_INCOMPAT_FILETYPE); in ext2_format()
243 sb->s_feature_ro_compat = sys_cpu_to_le32(0); in ext2_format()
244 sb->s_algo_bitmap = sys_cpu_to_le32(0); in ext2_format()
245 sb->s_prealloc_blocks = sys_cpu_to_le32(0); in ext2_format()
246 sb->s_prealloc_dir_blocks = sys_cpu_to_le32(0); in ext2_format()
247 sb->s_journal_inum = sys_cpu_to_le32(0); in ext2_format()
248 sb->s_journal_dev = sys_cpu_to_le32(0); in ext2_format()
249 sb->s_last_orphan = sys_cpu_to_le32(0); in ext2_format()
251 memcpy(sb->s_uuid, cfg->uuid, 16); in ext2_format()
252 strcpy(sb->s_volume_name, cfg->volume_name); in ext2_format()
280 set_bitmap_padding(bbitmap, blocks_count - sb->s_first_data_block, cfg); in ext2_format()