Home
last modified time | relevance | path

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

12

/linux-6.12.1/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 …]
Dlinuxvfs.c807 befs_super_block *disk_sb; in befs_fill_super() local
857 disk_sb = (befs_super_block *) bh->b_data; in befs_fill_super()
858 if ((disk_sb->magic1 == BEFS_SUPER_MAGIC1_LE) || in befs_fill_super()
859 (disk_sb->magic1 == BEFS_SUPER_MAGIC1_BE)) { in befs_fill_super()
863 disk_sb = in befs_fill_super()
867 if ((befs_load_sb(sb, disk_sb) != BEFS_OK) || in befs_fill_super()
871 befs_dump_super_block(sb, disk_sb); in befs_fill_super()
Dsuper.h5 int befs_load_sb(struct super_block *sb, befs_super_block *disk_sb);
/linux-6.12.1/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.12.1/fs/bcachefs/
Dsuper-io.c225 struct bch_fs *c = container_of(sb, struct bch_fs, disk_sb); in bch2_sb_field_resize_id()
232 struct bch_sb_handle *dev_sb = &ca->disk_sb; in bch2_sb_field_resize_id()
352 static int bch2_sb_validate(struct bch_sb_handle *disk_sb, in bch2_sb_validate() argument
355 struct bch_sb *sb = disk_sb->sb; in bch2_sb_validate()
515 struct bch_sb *src = c->disk_sb.sb; in bch2_sb_update()
617 ret = bch2_sb_realloc(&c->disk_sb, 0) ?: in bch2_sb_to_fs()
618 __copy_super(&c->disk_sb, src) ?: in bch2_sb_to_fs()
630 return __copy_super(&ca->disk_sb, c->disk_sb.sb); in bch2_sb_from_fs()
891 struct bch_sb *sb = ca->disk_sb.sb; in read_back_super()
892 struct bio *bio = ca->disk_sb.bio; in read_back_super()
[all …]
Dsb-members.c74 struct bch_sb_field_members_v2 *mi = bch2_sb_field_get(c->disk_sb.sb, members_v2); in sb_members_v2_resize_entries()
78 c->disk_sb.sb->nr_devices), 8); in sb_members_v2_resize_entries()
80 mi = bch2_sb_field_resize(&c->disk_sb, members_v2, u64s); in sb_members_v2_resize_entries()
84 for (int i = c->disk_sb.sb->nr_devices - 1; i >= 0; --i) { in sb_members_v2_resize_entries()
100 if (!bch2_sb_field_get(c->disk_sb.sb, members_v2)) { in bch2_sb_members_v2_init()
101 mi2 = bch2_sb_field_resize(&c->disk_sb, members_v2, in bch2_sb_members_v2_init()
105 mi1 = bch2_sb_field_get(c->disk_sb.sb, members_v1); in bch2_sb_members_v2_init()
115 int bch2_sb_members_cpy_v2_v1(struct bch_sb_handle *disk_sb) in bch2_sb_members_cpy_v2_v1() argument
120 mi1 = bch2_sb_field_resize(disk_sb, members_v1, in bch2_sb_members_cpy_v2_v1()
122 disk_sb->sb->nr_devices, sizeof(u64))); in bch2_sb_members_cpy_v2_v1()
[all …]
Dsb-clean.c41 le16_to_cpu(c->disk_sb.sb->version), in bch2_sb_clean_validate_late()
42 BCH_SB_BIG_ENDIAN(c->disk_sb.sb), in bch2_sb_clean_validate_late()
150 sb_clean = bch2_sb_field_get(c->disk_sb.sb, clean); in bch2_read_superblock_clean()
155 SET_BCH_SB_CLEAN(c->disk_sb.sb, false); in bch2_read_superblock_clean()
272 SET_BCH_SB_CLEAN(c->disk_sb.sb, false); in bch2_fs_mark_dirty()
273 c->disk_sb.sb->features[0] |= cpu_to_le64(BCH_SB_FEATURES_ALWAYS); in bch2_fs_mark_dirty()
289 if (BCH_SB_CLEAN(c->disk_sb.sb)) in bch2_fs_mark_clean()
292 SET_BCH_SB_CLEAN(c->disk_sb.sb, true); in bch2_fs_mark_clean()
294 c->disk_sb.sb->compat[0] |= cpu_to_le64(1ULL << BCH_COMPAT_alloc_info); in bch2_fs_mark_clean()
295 c->disk_sb.sb->compat[0] |= cpu_to_le64(1ULL << BCH_COMPAT_alloc_metadata); in bch2_fs_mark_clean()
[all …]
Drecovery.c48 bch2_sb_field_get(c->disk_sb.sb, ext)->btrees_lost_data |= cpu_to_le64(b); in bch2_btree_lost_data()
61 struct bch_sb_field_ext *ext = bch2_sb_field_get(c->disk_sb.sb, ext); in bch2_reconstruct_alloc()
609 struct bch_sb_field_ext *ext = bch2_sb_field_get(c->disk_sb.sb, ext); in check_version_upgrade()
667 struct bch_sb_field_ext *ext = bch2_sb_field_get(c->disk_sb.sb, ext); in bch2_fs_recovery()
670 if (BCH_SB_HAS_TOPOLOGY_ERRORS(c->disk_sb.sb)) { in bch2_fs_recovery()
759 SET_BCH_SB_CLEAN(c->disk_sb.sb, false); in bch2_fs_recovery()
919 ext = bch2_sb_field_get(c->disk_sb.sb, ext); in bch2_fs_recovery()
922 if (BCH_SB_VERSION_UPGRADE_COMPLETE(c->disk_sb.sb) != le16_to_cpu(c->disk_sb.sb->version)) { in bch2_fs_recovery()
923 SET_BCH_SB_VERSION_UPGRADE_COMPLETE(c->disk_sb.sb, le16_to_cpu(c->disk_sb.sb->version)); in bch2_fs_recovery()
928 !(c->disk_sb.sb->compat[0] & cpu_to_le64(1ULL << BCH_COMPAT_alloc_info))) { in bch2_fs_recovery()
[all …]
Djournal_seq_blacklist.c53 bl = bch2_sb_field_get(c->disk_sb.sb, journal_seq_blacklist); in bch2_journal_seq_blacklist_add()
78 bl = bch2_sb_field_resize(&c->disk_sb, journal_seq_blacklist, in bch2_journal_seq_blacklist_add()
89 c->disk_sb.sb->features[0] |= cpu_to_le64(1ULL << BCH_FEATURE_journal_seq_blacklist_v3); in bch2_journal_seq_blacklist_add()
136 bch2_sb_field_get(c->disk_sb.sb, journal_seq_blacklist); in bch2_blacklist_table_initialize()
224 bch2_sb_field_get(c->disk_sb.sb, journal_seq_blacklist); in bch2_blacklist_entries_gc()
251 bl = bch2_sb_field_resize(&c->disk_sb, journal_seq_blacklist, in bch2_blacklist_entries_gc()
Dsuper.c202 if (ca->disk_sb.bdev && ca->disk_sb.bdev->bd_dev == dev) { in bch2_dev_to_fs()
221 if (!memcmp(&c->disk_sb.sb->uuid, &uuid, sizeof(uuid))) in __bch2_uuid_to_fs()
602 bch2_free_super(&c->disk_sb); in __bch2_fs_free()
666 bch2_free_super(&ca->disk_sb); in bch2_fs_free()
759 c->disk_sb.fs_sb = true; in bch2_fs_alloc()
937 if (!bch2_member_exists(c->disk_sb.sb, i)) in bch2_fs_alloc()
993 bch2_opt_to_text(&p, c, c->disk_sb.sb, opt, v, OPT_SHOW_MOUNT_STYLE); in print_mount_opts()
1020 bch2_members_v2_get_mut(c->disk_sb.sb, ca->dev_idx)->last_mount = cpu_to_le64(now); in bch2_fs_start()
1023 bch2_sb_field_get_minsize(&c->disk_sb, ext, sizeof(*ext) / sizeof(u64)); in bch2_fs_start()
1036 ret = BCH_SB_INITIALIZED(c->disk_sb.sb) in bch2_fs_start()
[all …]
Dsb-counters.c43 struct bch_sb_field_counters *ctrs = bch2_sb_field_get(c->disk_sb.sb, counters); in bch2_sb_counters_to_cpu()
61 struct bch_sb_field_counters *ctrs = bch2_sb_field_get(c->disk_sb.sb, counters); in bch2_sb_counters_from_cpu()
67 ret = bch2_sb_field_resize(&c->disk_sb, counters, in bch2_sb_counters_from_cpu()
Dsb-downgrade.c160 struct bch_sb_field_ext *ext = bch2_sb_field_get(c->disk_sb.sb, ext); in bch2_sb_set_upgrade_extra()
184 struct bch_sb_field_ext *ext = bch2_sb_field_get(c->disk_sb.sb, ext); in bch2_sb_set_upgrade()
343 if (BCH_VERSION_MAJOR(src->version) != BCH_VERSION_MAJOR(le16_to_cpu(c->disk_sb.sb->version))) in bch2_sb_downgrade_update()
373 struct bch_sb_field_downgrade *d = bch2_sb_field_get(c->disk_sb.sb, downgrade); in bch2_sb_downgrade_update()
380 d = bch2_sb_field_resize(&c->disk_sb, downgrade, sb_u64s); in bch2_sb_downgrade_update()
395 struct bch_sb_field_downgrade *d = bch2_sb_field_get(c->disk_sb.sb, downgrade); in bch2_sb_set_downgrade()
399 struct bch_sb_field_ext *ext = bch2_sb_field_get(c->disk_sb.sb, ext); in bch2_sb_set_downgrade()
Djournal_sb.c201 bch2_sb_field_delete(&ca->disk_sb, BCH_SB_FIELD_journal); in bch2_journal_buckets_to_sb()
202 bch2_sb_field_delete(&ca->disk_sb, BCH_SB_FIELD_journal_v2); in bch2_journal_buckets_to_sb()
210 j = bch2_sb_field_resize(&ca->disk_sb, journal_v2, in bch2_journal_buckets_to_sb()
215 bch2_sb_field_delete(&ca->disk_sb, BCH_SB_FIELD_journal); in bch2_journal_buckets_to_sb()
Dchecksum.c640 ret = bch2_request_key(c->disk_sb.sb, &user_key); in bch2_decrypt_sb_key()
698 crypt = bch2_sb_field_get(c->disk_sb.sb, crypt); in bch2_disable_encryption()
714 SET_BCH_SB_ENCRYPTION_TYPE(c->disk_sb.sb, 0); in bch2_disable_encryption()
732 if (bch2_sb_field_get(c->disk_sb.sb, crypt)) in bch2_enable_encryption()
743 ret = bch2_request_key(c->disk_sb.sb, &user_key); in bch2_enable_encryption()
760 crypt = bch2_sb_field_resize(&c->disk_sb, crypt, in bch2_enable_encryption()
770 SET_BCH_SB_ENCRYPTION_TYPE(c->disk_sb.sb, 1); in bch2_enable_encryption()
803 crypt = bch2_sb_field_get(c->disk_sb.sb, crypt); in bch2_fs_encryption_init()
Dreplicas.c591 if ((sb_v1 = bch2_sb_field_get(c->disk_sb.sb, replicas))) in bch2_sb_replicas_to_cpu_replicas()
593 else if ((sb_v0 = bch2_sb_field_get(c->disk_sb.sb, replicas_v0))) in bch2_sb_replicas_to_cpu_replicas()
622 sb_r = bch2_sb_field_resize(&c->disk_sb, replicas_v0, in bch2_cpu_replicas_to_sb_replicas_v0()
627 bch2_sb_field_delete(&c->disk_sb, BCH_SB_FIELD_replicas); in bch2_cpu_replicas_to_sb_replicas_v0()
628 sb_r = bch2_sb_field_get(c->disk_sb.sb, replicas_v0); in bch2_cpu_replicas_to_sb_replicas_v0()
667 sb_r = bch2_sb_field_resize(&c->disk_sb, replicas, in bch2_cpu_replicas_to_sb_replicas()
672 bch2_sb_field_delete(&c->disk_sb, BCH_SB_FIELD_replicas_v0); in bch2_cpu_replicas_to_sb_replicas()
673 sb_r = bch2_sb_field_get(c->disk_sb.sb, replicas); in bch2_cpu_replicas_to_sb_replicas()
909 unsigned ret = bch2_sb_dev_has_data(c->disk_sb.sb, ca->dev_idx); in bch2_dev_has_data()
Ddisk_groups.c154 groups = bch2_sb_field_get(c->disk_sb.sb, disk_groups); in bch2_sb_disk_groups_to_cpu()
175 for (i = 0; i < c->disk_sb.sb->nr_devices; i++) { in bch2_sb_disk_groups_to_cpu()
176 struct bch_member m = bch2_sb_member_get(c->disk_sb.sb, i); in bch2_sb_disk_groups_to_cpu()
479 v = bch2_disk_path_find_or_create(&c->disk_sb, name); in __bch2_dev_group_set()
487 mi = bch2_members_v2_get_mut(c->disk_sb.sb, ca->dev_idx); in __bch2_dev_group_set()
530 g = bch2_disk_path_find(&c->disk_sb, val); in bch2_opt_target_parse()
Dquota.c465 sb_quota = bch2_sb_field_get(c->disk_sb.sb, quota); in bch2_sb_quota_read()
527 struct bch_sb_field_quota *sb_quota = bch2_sb_get_or_create_quota(&c->disk_sb); in bch2_fs_quota_read()
573 sb_quota = bch2_sb_get_or_create_quota(&c->disk_sb); in bch2_quota_enable()
580 SET_BCH_SB_USRQUOTA(c->disk_sb.sb, true); in bch2_quota_enable()
583 SET_BCH_SB_GRPQUOTA(c->disk_sb.sb, true); in bch2_quota_enable()
586 SET_BCH_SB_PRJQUOTA(c->disk_sb.sb, true); in bch2_quota_enable()
604 SET_BCH_SB_USRQUOTA(c->disk_sb.sb, false); in bch2_quota_disable()
607 SET_BCH_SB_GRPQUOTA(c->disk_sb.sb, false); in bch2_quota_disable()
610 SET_BCH_SB_PRJQUOTA(c->disk_sb.sb, false); in bch2_quota_disable()
727 sb_quota = bch2_sb_get_or_create_quota(&c->disk_sb); in bch2_quota_set_info()
Dsb-errors.c118 dst = bch2_sb_field_resize(&c->disk_sb, errors, in bch2_sb_errors_from_cpu()
136 struct bch_sb_field_errors *src = bch2_sb_field_get(c->disk_sb.sb, errors); in bch2_sb_errors_to_cpu()
Drecovery_passes.c130 struct bch_sb_field_ext *ext = bch2_sb_field_get(c->disk_sb.sb, ext); in bch2_run_explicit_recovery_pass_persistent()
147 struct bch_sb_field_ext *ext = bch2_sb_field_get(c->disk_sb.sb, ext); in bch2_clear_recovery_pass_required()
Dmove.c1001 c->disk_sb.sb->compat[0] |= cpu_to_le64(1ULL << BCH_COMPAT_extents_above_btree_updates_done); in bch2_scan_old_btree_nodes()
1002 c->disk_sb.sb->compat[0] |= cpu_to_le64(1ULL << BCH_COMPAT_bformat_overflow_done); in bch2_scan_old_btree_nodes()
1003 c->disk_sb.sb->version_min = c->disk_sb.sb->version; in bch2_scan_old_btree_nodes()
Dfs-ioctl.c289 memcpy(label, c->disk_sb.sb->label, BCH_SB_LABEL_SIZE); in bch2_ioc_getlabel()
330 strscpy(c->disk_sb.sb->label, label, BCH_SB_LABEL_SIZE); in bch2_ioc_setlabel()
Djournal_io.c25 struct bch_member *m = bch2_members_v2_get_mut(c->disk_sb.sb, ca->dev_idx); in bch2_journal_pos_from_member_info_set()
36 struct bch_member m = bch2_sb_member_get(c->disk_sb.sb, ca->dev_idx); in bch2_journal_pos_from_member_info_resume()
1020 bio_init(bio, ca->disk_sb.bdev, bio->bi_inline_vecs, nr_bvecs, REQ_OP_READ); in journal_read_bucket()
1731 bio_reset(bio, ca->disk_sb.bdev, REQ_OP_WRITE|REQ_SYNC|REQ_META); in CLOSURE_CALLBACK()
1778 bio_reset(bio, ca->disk_sb.bdev, in CLOSURE_CALLBACK()
1990 BUG_ON(BCH_SB_CLEAN(c->disk_sb.sb)); in CLOSURE_CALLBACK()
Djournal_reclaim.c282 bdev_max_discard_sectors(ca->disk_sb.bdev)) in bch2_journal_do_discards()
283 blkdev_issue_discard(ca->disk_sb.bdev, in bch2_journal_do_discards()
Dbcachefs.h531 struct bch_sb_handle disk_sb; member
786 struct bch_sb_handle disk_sb; member
/linux-6.12.1/fs/btrfs/
Ddisk-io.h54 const struct btrfs_super_block *disk_sb);

12