Home
last modified time | relevance | path

Searched refs:disk_sb (Results 1 – 6 of 6) sorted by relevance

/linux-6.6.21/fs/befs/
Dsuper.c21 befs_load_sb(struct super_block *sb, befs_super_block *disk_sb) in befs_load_sb() argument
26 if (disk_sb->fs_byte_order == BEFS_BYTEORDER_NATIVE_LE) in befs_load_sb()
28 else if (disk_sb->fs_byte_order == BEFS_BYTEORDER_NATIVE_BE) in befs_load_sb()
31 befs_sb->magic1 = fs32_to_cpu(sb, disk_sb->magic1); in befs_load_sb()
32 befs_sb->magic2 = fs32_to_cpu(sb, disk_sb->magic2); in befs_load_sb()
33 befs_sb->magic3 = fs32_to_cpu(sb, disk_sb->magic3); in befs_load_sb()
34 befs_sb->block_size = fs32_to_cpu(sb, disk_sb->block_size); in befs_load_sb()
35 befs_sb->block_shift = fs32_to_cpu(sb, disk_sb->block_shift); in befs_load_sb()
36 befs_sb->num_blocks = fs64_to_cpu(sb, disk_sb->num_blocks); in befs_load_sb()
37 befs_sb->used_blocks = fs64_to_cpu(sb, disk_sb->used_blocks); in befs_load_sb()
[all …]
Dsuper.h5 int befs_load_sb(struct super_block *sb, befs_super_block *disk_sb);
Dlinuxvfs.c812 befs_super_block *disk_sb; in befs_fill_super() local
862 disk_sb = (befs_super_block *) bh->b_data; in befs_fill_super()
863 if ((disk_sb->magic1 == BEFS_SUPER_MAGIC1_LE) || in befs_fill_super()
864 (disk_sb->magic1 == BEFS_SUPER_MAGIC1_BE)) { in befs_fill_super()
868 disk_sb = in befs_fill_super()
872 if ((befs_load_sb(sb, disk_sb) != BEFS_OK) || in befs_fill_super()
876 befs_dump_super_block(sb, disk_sb); in befs_fill_super()
/linux-6.6.21/fs/reiserfs/
Dobjectid.c181 struct reiserfs_super_block *disk_sb = SB_DISK_SUPER_BLOCK(s); in reiserfs_convert_objectid_map_v1() local
182 int cur_size = sb_oid_cursize(disk_sb); in reiserfs_convert_objectid_map_v1()
184 int old_max = sb_oid_maxsize(disk_sb); in reiserfs_convert_objectid_map_v1()
199 set_sb_oid_cursize(disk_sb, new_size); in reiserfs_convert_objectid_map_v1()
207 set_sb_oid_maxsize(disk_sb, new_size); in reiserfs_convert_objectid_map_v1()
210 memset(disk_sb->s_label, 0, sizeof(disk_sb->s_label)); in reiserfs_convert_objectid_map_v1()
211 generate_random_uuid(disk_sb->s_uuid); in reiserfs_convert_objectid_map_v1()
214 memset(disk_sb->s_unused, 0, sizeof(disk_sb->s_unused)); in reiserfs_convert_objectid_map_v1()
/linux-6.6.21/fs/btrfs/
Ddisk-io.h45 const struct btrfs_super_block *disk_sb);
Ddisk-io.c145 const struct btrfs_super_block *disk_sb) in btrfs_check_super_csum() argument
157 crypto_shash_digest(shash, (const u8 *)disk_sb + BTRFS_CSUM_SIZE, in btrfs_check_super_csum()
160 if (memcmp(disk_sb->csum, result, fs_info->csum_size)) in btrfs_check_super_csum()