Lines Matching refs:disk_super

678 	struct btrfs_super_block *disk_super;  in btrfs_open_one_device()  local
692 disk_super = (struct btrfs_super_block *)bh->b_data; in btrfs_open_one_device()
693 devid = btrfs_stack_device_id(&disk_super->dev_item); in btrfs_open_one_device()
697 if (memcmp(device->uuid, disk_super->dev_item.uuid, BTRFS_UUID_SIZE)) in btrfs_open_one_device()
700 device->generation = btrfs_super_generation(disk_super); in btrfs_open_one_device()
702 if (btrfs_super_flags(disk_super) & BTRFS_SUPER_FLAG_SEEDING) { in btrfs_open_one_device()
745 struct btrfs_super_block *disk_super, in device_list_add() argument
751 u64 found_transid = btrfs_super_generation(disk_super); in device_list_add()
752 u64 devid = btrfs_stack_device_id(&disk_super->dev_item); in device_list_add()
754 fs_devices = find_fsid(disk_super->fsid); in device_list_add()
756 fs_devices = alloc_fs_devices(disk_super->fsid); in device_list_add()
767 disk_super->dev_item.uuid, NULL, false); in device_list_add()
777 disk_super->dev_item.uuid); in device_list_add()
798 if (disk_super->label[0]) in device_list_add()
800 disk_super->label, devid, found_transid, path); in device_list_add()
803 disk_super->fsid, devid, found_transid, path); in device_list_add()
903 fs_devices->total_devices = btrfs_super_num_devices(disk_super); in device_list_add()
1197 struct btrfs_super_block **disk_super) in btrfs_read_disk_super() argument
1207 if (sizeof(**disk_super) > PAGE_SIZE) in btrfs_read_disk_super()
1212 if ((bytenr + sizeof(**disk_super) - 1) >> PAGE_SHIFT != index) in btrfs_read_disk_super()
1225 *disk_super = p + (bytenr & ~PAGE_MASK); in btrfs_read_disk_super()
1227 if (btrfs_super_bytenr(*disk_super) != bytenr || in btrfs_read_disk_super()
1228 btrfs_super_magic(*disk_super) != BTRFS_MAGIC) { in btrfs_read_disk_super()
1233 if ((*disk_super)->label[0] && in btrfs_read_disk_super()
1234 (*disk_super)->label[BTRFS_LABEL_SIZE - 1]) in btrfs_read_disk_super()
1235 (*disk_super)->label[BTRFS_LABEL_SIZE - 1] = '\0'; in btrfs_read_disk_super()
1248 struct btrfs_super_block *disk_super; in btrfs_scan_one_device() local
1270 if (btrfs_read_disk_super(bdev, bytenr, &page, &disk_super)) { in btrfs_scan_one_device()
1275 device = device_list_add(path, disk_super, &new_device_added); in btrfs_scan_one_device()
2137 struct btrfs_super_block *disk_super; in btrfs_find_device_by_path() local
2148 disk_super = (struct btrfs_super_block *)bh->b_data; in btrfs_find_device_by_path()
2149 devid = btrfs_stack_device_id(&disk_super->dev_item); in btrfs_find_device_by_path()
2150 dev_uuid = disk_super->dev_item.uuid; in btrfs_find_device_by_path()
2152 disk_super->fsid, true); in btrfs_find_device_by_path()
2220 struct btrfs_super_block *disk_super = fs_info->super_copy; in btrfs_prepare_sprout() local
2265 memcpy(disk_super->fsid, fs_devices->fsid, BTRFS_FSID_SIZE); in btrfs_prepare_sprout()
2268 super_flags = btrfs_super_flags(disk_super) & in btrfs_prepare_sprout()
2270 btrfs_set_super_flags(disk_super, super_flags); in btrfs_prepare_sprout()
7226 struct btrfs_super_block *disk_super; in btrfs_scratch_superblocks() local
7238 disk_super = (struct btrfs_super_block *)bh->b_data; in btrfs_scratch_superblocks()
7240 memset(&disk_super->magic, 0, sizeof(disk_super->magic)); in btrfs_scratch_superblocks()