Lines Matching refs:btrfs_fs_devices

380 static struct btrfs_fs_devices *alloc_fs_devices(const u8 *fsid)  in alloc_fs_devices()
382 struct btrfs_fs_devices *fs_devs; in alloc_fs_devices()
412 static void free_fs_devices(struct btrfs_fs_devices *fs_devices) in free_fs_devices()
428 struct btrfs_fs_devices *fs_devices; in btrfs_cleanup_fs_uuids()
431 fs_devices = list_first_entry(&fs_uuids, struct btrfs_fs_devices, in btrfs_cleanup_fs_uuids()
438 static bool match_fsid_fs_devices(const struct btrfs_fs_devices *fs_devices, in match_fsid_fs_devices()
453 static noinline struct btrfs_fs_devices *find_fsid( in find_fsid()
456 struct btrfs_fs_devices *fs_devices; in find_fsid()
526 struct btrfs_fs_devices *fs_devices, *tmp_fs_devices; in btrfs_free_stale_devices()
573 static struct btrfs_fs_devices *find_fsid_by_device( in find_fsid_by_device()
577 struct btrfs_fs_devices *fsid_fs_devices; in find_fsid_by_device()
578 struct btrfs_fs_devices *devt_fs_devices; in find_fsid_by_device()
646 static int btrfs_open_one_device(struct btrfs_fs_devices *fs_devices, in btrfs_open_one_device()
784 struct btrfs_fs_devices *fs_devices = NULL; in device_list_add()
992 static struct btrfs_fs_devices *clone_fs_devices(struct btrfs_fs_devices *orig) in clone_fs_devices()
994 struct btrfs_fs_devices *fs_devices; in clone_fs_devices()
1046 static void __btrfs_free_extra_devids(struct btrfs_fs_devices *fs_devices, in __btrfs_free_extra_devids()
1094 void btrfs_free_extra_devids(struct btrfs_fs_devices *fs_devices) in btrfs_free_extra_devids()
1097 struct btrfs_fs_devices *seed_dev; in btrfs_free_extra_devids()
1125 struct btrfs_fs_devices *fs_devices = device->fs_devices; in btrfs_close_one_device()
1174 static void close_fs_devices(struct btrfs_fs_devices *fs_devices) in close_fs_devices()
1193 void btrfs_close_devices(struct btrfs_fs_devices *fs_devices) in btrfs_close_devices()
1196 struct btrfs_fs_devices *tmp; in btrfs_close_devices()
1224 static int open_fs_devices(struct btrfs_fs_devices *fs_devices, in open_fs_devices()
1296 int btrfs_open_devices(struct btrfs_fs_devices *fs_devices, in btrfs_open_devices()
1397 struct btrfs_fs_devices *fs_devices; in btrfs_skip_registration()
2070 struct btrfs_fs_devices *fs_devs, struct btrfs_device *device) in btrfs_find_next_active_device()
2176 struct btrfs_fs_devices *cur_devices; in btrfs_rm_device()
2177 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; in btrfs_rm_device()
2344 struct btrfs_fs_devices *fs_devices; in btrfs_rm_dev_replace_remove_srcdev()
2371 struct btrfs_fs_devices *fs_devices = srcdev->fs_devices; in btrfs_rm_dev_replace_free_srcdev()
2398 struct btrfs_fs_devices *fs_devices = tgtdev->fs_info->fs_devices; in btrfs_destroy_dev_replace_tgtdev()
2519 static struct btrfs_fs_devices *btrfs_init_sprout(struct btrfs_fs_info *fs_info) in btrfs_init_sprout()
2521 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; in btrfs_init_sprout()
2522 struct btrfs_fs_devices *old_devices; in btrfs_init_sprout()
2523 struct btrfs_fs_devices *seed_devices; in btrfs_init_sprout()
2565 struct btrfs_fs_devices *seed_devices) in btrfs_setup_sprout()
2567 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; in btrfs_setup_sprout()
2696 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; in btrfs_init_new_device()
2697 struct btrfs_fs_devices *seed_devices = NULL; in btrfs_init_new_device()
3243 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; in btrfs_remove_chunk()
5145 struct btrfs_fs_devices *fs_devices, in init_alloc_chunk_ctl_policy_regular()
5166 struct btrfs_fs_devices *fs_devices, in init_alloc_chunk_ctl_policy_zoned()
5198 static void init_alloc_chunk_ctl(struct btrfs_fs_devices *fs_devices, in init_alloc_chunk_ctl()
5227 static int gather_device_info(struct btrfs_fs_devices *fs_devices, in gather_device_info()
5387 static int decide_stripe_size(struct btrfs_fs_devices *fs_devices, in decide_stripe_size()
5580 struct btrfs_fs_devices *fs_devices = info->fs_devices; in btrfs_create_chunk()
6783 const struct btrfs_fs_devices *fs_devices) in dev_args_match_fs_devices()
6816 struct btrfs_device *btrfs_find_device(const struct btrfs_fs_devices *fs_devices, in btrfs_find_device()
6820 struct btrfs_fs_devices *seed_devs; in btrfs_find_device()
6841 static struct btrfs_device *add_missing_dev(struct btrfs_fs_devices *fs_devices, in add_missing_dev()
7136 static struct btrfs_fs_devices *open_seed_devices(struct btrfs_fs_info *fs_info, in open_seed_devices()
7139 struct btrfs_fs_devices *fs_devices; in open_seed_devices()
7199 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; in read_one_dev()
7567 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices, *seed_devs; in btrfs_init_devices_late()
7659 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices, *seed_devs; in btrfs_init_dev_stats()
7757 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; in btrfs_run_dev_stats()
7832 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; in btrfs_get_dev_stats()