Lines Matching refs:disk_sb

74 	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()
126 mi2 = bch2_sb_field_get(disk_sb->sb, members_v2); in bch2_sb_members_cpy_v2_v1()
128 for (unsigned i = 0; i < disk_sb->sb->nr_devices; i++) in bch2_sb_members_cpy_v2_v1()
351 struct bch_sb_field_members_v2 *mi = bch2_sb_field_get(c->disk_sb.sb, members_v2); in bch2_sb_members_from_cpu()
369 m = bch2_sb_member_get(c->disk_sb.sb, ca->dev_idx); in bch2_dev_io_errors_to_text()
400 m = bch2_members_v2_get_mut(c->disk_sb.sb, ca->dev_idx); in bch2_dev_errors_reset()
468 struct bch_sb_field_members_v2 *mi = bch2_sb_field_get(c->disk_sb.sb, members_v2); in bch2_dev_btree_bitmap_mark()
470 if (!bch2_member_exists(c->disk_sb.sb, ptr->dev)) in bch2_dev_btree_bitmap_mark()
503 struct bch_member m = bch2_sb_member_get(c->disk_sb.sb, dev_idx); in bch2_sb_member_alloc()
522 mi = bch2_sb_field_get(c->disk_sb.sb, members_v2); in bch2_sb_member_alloc()
526 mi = bch2_sb_field_resize(&c->disk_sb, members_v2, u64s); in bch2_sb_member_alloc()
530 c->disk_sb.sb->nr_devices = nr_devices; in bch2_sb_member_alloc()