Lines Matching refs:disk_sb

32 static void fill_sblock(struct ext2_superblock *sb, struct ext2_disk_superblock *disk_sb)  in fill_sblock()  argument
34 sb->s_inodes_count = sys_le32_to_cpu(disk_sb->s_inodes_count); in fill_sblock()
35 sb->s_blocks_count = sys_le32_to_cpu(disk_sb->s_blocks_count); in fill_sblock()
36 sb->s_free_blocks_count = sys_le32_to_cpu(disk_sb->s_free_blocks_count); in fill_sblock()
37 sb->s_free_inodes_count = sys_le32_to_cpu(disk_sb->s_free_inodes_count); in fill_sblock()
38 sb->s_first_data_block = sys_le32_to_cpu(disk_sb->s_first_data_block); in fill_sblock()
39 sb->s_log_block_size = sys_le32_to_cpu(disk_sb->s_log_block_size); in fill_sblock()
40 sb->s_log_frag_size = sys_le32_to_cpu(disk_sb->s_log_frag_size); in fill_sblock()
41 sb->s_blocks_per_group = sys_le32_to_cpu(disk_sb->s_blocks_per_group); in fill_sblock()
42 sb->s_frags_per_group = sys_le32_to_cpu(disk_sb->s_frags_per_group); in fill_sblock()
43 sb->s_inodes_per_group = sys_le32_to_cpu(disk_sb->s_inodes_per_group); in fill_sblock()
44 sb->s_mnt_count = sys_le16_to_cpu(disk_sb->s_mnt_count); in fill_sblock()
45 sb->s_max_mnt_count = sys_le16_to_cpu(disk_sb->s_max_mnt_count); in fill_sblock()
46 sb->s_magic = sys_le16_to_cpu(disk_sb->s_magic); in fill_sblock()
47 sb->s_state = sys_le16_to_cpu(disk_sb->s_state); in fill_sblock()
48 sb->s_errors = sys_le16_to_cpu(disk_sb->s_errors); in fill_sblock()
49 sb->s_creator_os = sys_le32_to_cpu(disk_sb->s_creator_os); in fill_sblock()
50 sb->s_rev_level = sys_le32_to_cpu(disk_sb->s_rev_level); in fill_sblock()
51 sb->s_first_ino = sys_le32_to_cpu(disk_sb->s_first_ino); in fill_sblock()
52 sb->s_inode_size = sys_le16_to_cpu(disk_sb->s_inode_size); in fill_sblock()
53 sb->s_block_group_nr = sys_le16_to_cpu(disk_sb->s_block_group_nr); in fill_sblock()
54 sb->s_feature_compat = sys_le32_to_cpu(disk_sb->s_feature_compat); in fill_sblock()
55 sb->s_feature_incompat = sys_le32_to_cpu(disk_sb->s_feature_incompat); in fill_sblock()
56 sb->s_feature_ro_compat = sys_le32_to_cpu(disk_sb->s_feature_ro_compat); in fill_sblock()
59 static void fill_disk_sblock(struct ext2_disk_superblock *disk_sb, struct ext2_superblock *sb) in fill_disk_sblock() argument
61 disk_sb->s_inodes_count = sys_cpu_to_le32(sb->s_inodes_count); in fill_disk_sblock()
62 disk_sb->s_blocks_count = sys_cpu_to_le32(sb->s_blocks_count); in fill_disk_sblock()
63 disk_sb->s_free_blocks_count = sys_cpu_to_le32(sb->s_free_blocks_count); in fill_disk_sblock()
64 disk_sb->s_free_inodes_count = sys_cpu_to_le32(sb->s_free_inodes_count); in fill_disk_sblock()
65 disk_sb->s_first_data_block = sys_cpu_to_le32(sb->s_first_data_block); in fill_disk_sblock()
66 disk_sb->s_log_block_size = sys_cpu_to_le32(sb->s_log_block_size); in fill_disk_sblock()
67 disk_sb->s_log_frag_size = sys_cpu_to_le32(sb->s_log_frag_size); in fill_disk_sblock()
68 disk_sb->s_blocks_per_group = sys_cpu_to_le32(sb->s_blocks_per_group); in fill_disk_sblock()
69 disk_sb->s_frags_per_group = sys_cpu_to_le32(sb->s_frags_per_group); in fill_disk_sblock()
70 disk_sb->s_inodes_per_group = sys_cpu_to_le32(sb->s_inodes_per_group); in fill_disk_sblock()
71 disk_sb->s_mnt_count = sys_cpu_to_le16(sb->s_mnt_count); in fill_disk_sblock()
72 disk_sb->s_max_mnt_count = sys_cpu_to_le16(sb->s_max_mnt_count); in fill_disk_sblock()
73 disk_sb->s_magic = sys_cpu_to_le16(sb->s_magic); in fill_disk_sblock()
74 disk_sb->s_state = sys_cpu_to_le16(sb->s_state); in fill_disk_sblock()
75 disk_sb->s_errors = sys_cpu_to_le16(sb->s_errors); in fill_disk_sblock()
76 disk_sb->s_creator_os = sys_cpu_to_le32(sb->s_creator_os); in fill_disk_sblock()
77 disk_sb->s_rev_level = sys_cpu_to_le32(sb->s_rev_level); in fill_disk_sblock()
78 disk_sb->s_first_ino = sys_cpu_to_le32(sb->s_first_ino); in fill_disk_sblock()
79 disk_sb->s_inode_size = sys_cpu_to_le16(sb->s_inode_size); in fill_disk_sblock()
80 disk_sb->s_block_group_nr = sys_cpu_to_le16(sb->s_block_group_nr); in fill_disk_sblock()
81 disk_sb->s_feature_compat = sys_cpu_to_le32(sb->s_feature_compat); in fill_disk_sblock()
82 disk_sb->s_feature_incompat = sys_cpu_to_le32(sb->s_feature_incompat); in fill_disk_sblock()
83 disk_sb->s_feature_ro_compat = sys_cpu_to_le32(sb->s_feature_ro_compat); in fill_disk_sblock()
217 struct ext2_disk_superblock *disk_sb = in ext2_fetch_superblock() local
220 fill_sblock(&fs->sblock, disk_sb); in ext2_fetch_superblock()
776 struct ext2_disk_superblock *disk_sb = in ext2_commit_superblock() local
779 fill_disk_sblock(disk_sb, &fs->sblock); in ext2_commit_superblock()