Lines Matching refs:sb
92 void read_sb(int fd, struct ext4_super_block *sb) in read_sb() argument
100 ret = read(fd, sb, sizeof(*sb)); in read_sb()
103 if (ret != sizeof(*sb)) in read_sb()
157 aux_info.sb = (struct ext4_super_block *)((char *)aux_info.sb_block + 1024); in ext4_create_fs_aux_info()
159 aux_info.sb = aux_info.sb_block; in ext4_create_fs_aux_info()
164 if (!aux_info.sb) in ext4_create_fs_aux_info()
186 void ext4_parse_sb_info(struct ext4_super_block *sb) in ext4_parse_sb_info() argument
188 if (sb->s_magic != EXT4_SUPER_MAGIC) in ext4_parse_sb_info()
191 if ((sb->s_state & EXT4_VALID_FS) != EXT4_VALID_FS) in ext4_parse_sb_info()
194 ext4_parse_sb(sb, &info); in ext4_parse_sb_info()
198 memcpy(aux_info.sb, sb, sizeof(*sb)); in ext4_parse_sb_info()
200 if (aux_info.first_data_block != sb->s_first_data_block) in ext4_parse_sb_info()
270 struct ext4_super_block sb; in read_ext() local
272 read_sb(fd, &sb); in read_ext()
274 ext4_parse_sb_info(&sb); in read_ext()
302 aux_info.sb->s_inodes_count - aux_info.sb->s_free_inodes_count, in read_ext()
303 aux_info.sb->s_inodes_count, in read_ext()
304 aux_info.sb->s_blocks_count_lo - aux_info.sb->s_free_blocks_count_lo, in read_ext()
305 aux_info.sb->s_blocks_count_lo); in read_ext()