Lines Matching refs:sb
94 void read_sb(int fd, struct ext4_super_block *sb) in read_sb() argument
102 ret = read(fd, sb, sizeof(*sb)); in read_sb()
105 if (ret != sizeof(*sb)) in read_sb()
159 aux_info.sb = (struct ext4_super_block *)((char *)aux_info.sb_block + 1024); in ext4_create_fs_aux_info()
161 aux_info.sb = aux_info.sb_block; in ext4_create_fs_aux_info()
166 if (!aux_info.sb) in ext4_create_fs_aux_info()
188 void ext4_parse_sb_info(struct ext4_super_block *sb) in ext4_parse_sb_info() argument
190 if (sb->s_magic != EXT4_SUPER_MAGIC) in ext4_parse_sb_info()
193 if ((sb->s_state & EXT4_VALID_FS) != EXT4_VALID_FS) in ext4_parse_sb_info()
196 ext4_parse_sb(sb, &info); in ext4_parse_sb_info()
200 memcpy(aux_info.sb, sb, sizeof(*sb)); in ext4_parse_sb_info()
202 if (aux_info.first_data_block != sb->s_first_data_block) in ext4_parse_sb_info()
272 struct ext4_super_block sb; in read_ext() local
274 read_sb(fd, &sb); in read_ext()
276 ext4_parse_sb_info(&sb); in read_ext()
304 aux_info.sb->s_inodes_count - aux_info.sb->s_free_inodes_count, in read_ext()
305 aux_info.sb->s_inodes_count, in read_ext()
306 aux_info.sb->s_blocks_count_lo - aux_info.sb->s_free_blocks_count_lo, in read_ext()
307 aux_info.sb->s_blocks_count_lo); in read_ext()