Lines Matching refs:disk_sb
202 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()
1082 BCH_SB_BTREE_NODE_SIZE(c->disk_sb.sb)) in bch2_dev_may_add()
1195 bch2_free_super(&ca->disk_sb); in bch2_dev_free()
1229 bch2_free_super(&ca->disk_sb); in __bch2_dev_offline()
1262 ca->disk_sb.bdev && in bch2_dev_unlink()
1263 (b = bdev_kobj(ca->disk_sb.bdev))->state_in_sysfs) { in bch2_dev_unlink()
1283 if (ca->disk_sb.bdev) { in bch2_dev_sysfs_online()
1284 struct kobject *block = bdev_kobj(ca->disk_sb.bdev); in bch2_dev_sysfs_online()
1367 struct bch_member member = bch2_sb_member_get(c->disk_sb.sb, dev_idx); in bch2_dev_alloc()
1411 ca->disk_sb = *sb; in __bch2_dev_attach_bdev()
1414 ca->dev = ca->disk_sb.bdev->bd_dev; in __bch2_dev_attach_bdev()
1429 le64_to_cpu(c->disk_sb.sb->seq)) in bch2_dev_attach_bdev()
1443 prt_bdevname(&name, ca->disk_sb.bdev); in bch2_dev_attach_bdev()
1525 for (i = 0; i < c->disk_sb.sb->nr_devices; i++) { in bch2_fs_may_start()
1526 if (!bch2_member_exists(c->disk_sb.sb, i)) in bch2_fs_may_start()
1583 m = bch2_members_v2_get_mut(c->disk_sb.sb, ca->dev_idx); in __bch2_dev_set_state()
1699 m = bch2_members_v2_get_mut(c->disk_sb.sb, dev_idx); in bch2_dev_remove()
1780 *bch2_members_v2_get_mut(c->disk_sb.sb, dev_idx) = dev_mi; in bch2_dev_add()
1782 ca->disk_sb.sb->dev_idx = dev_idx; in bch2_dev_add()
1853 ret = bch2_dev_in_fs(&c->disk_sb, &sb, &c->opts); in bch2_dev_online()
1887 bch2_members_v2_get_mut(c->disk_sb.sb, ca->dev_idx)->last_mount = in bch2_dev_online()
1945 get_capacity(ca->disk_sb.bdev->bd_disk) < in bch2_dev_resize()
1962 m = bch2_members_v2_get_mut(c->disk_sb.sb, ca->dev_idx); in bch2_dev_resize()