Lines Matching refs:disk_sb

48 		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()
929 c->disk_sb.sb->compat[0] |= cpu_to_le64(1ULL << BCH_COMPAT_alloc_info); in bch2_fs_recovery()
950 SET_BCH_SB_HAS_ERRORS(c->disk_sb.sb, 0); in bch2_fs_recovery()
951 SET_BCH_SB_HAS_TOPOLOGY_ERRORS(c->disk_sb.sb, 0); in bch2_fs_recovery()
1018 c->disk_sb.sb->compat[0] |= cpu_to_le64(1ULL << BCH_COMPAT_extents_above_btree_updates_done); in bch2_fs_initialize()
1019 c->disk_sb.sb->compat[0] |= cpu_to_le64(1ULL << BCH_COMPAT_bformat_overflow_done); in bch2_fs_initialize()
1025 SET_BCH_SB_VERSION_UPGRADE_COMPLETE(c->disk_sb.sb, bcachefs_metadata_version_current); in bch2_fs_initialize()
1030 m = bch2_members_v2_get_mut(c->disk_sb.sb, ca->dev_idx); in bch2_fs_initialize()
1134 SET_BCH_SB_INITIALIZED(c->disk_sb.sb, true); in bch2_fs_initialize()
1135 SET_BCH_SB_CLEAN(c->disk_sb.sb, false); in bch2_fs_initialize()