/linux-master/fs/btrfs/ |
H A D | volumes.c | 271 * protects the fs_uuids list that tracks all per-fs fs_devices, resulting from 277 * protects: updates to fs_devices counters like missing devices, rw devices, 282 * does not protect: manipulation of the fs_devices::devices list in general 288 * fs_devices::device_list_mutex (per-fs, with RCU) 290 * protects updates to fs_devices::devices, ie. adding and deleting 372 * @fsid: if not NULL, copy the UUID to fs_devices::fsid and to 373 * fs_devices::metadata_fsid 411 static void free_fs_devices(struct btrfs_fs_devices *fs_devices) argument 415 WARN_ON(fs_devices->opened); 416 while (!list_empty(&fs_devices 427 struct btrfs_fs_devices *fs_devices; local 437 match_fsid_fs_devices(const struct btrfs_fs_devices *fs_devices, const u8 *fsid, const u8 *metadata_fsid) argument 455 struct btrfs_fs_devices *fs_devices; local 520 struct btrfs_fs_devices *fs_devices, *tmp_fs_devices; local 640 btrfs_open_one_device(struct btrfs_fs_devices *fs_devices, struct btrfs_device *device, blk_mode_t flags, void *holder) argument 742 struct btrfs_fs_devices *fs_devices = NULL; local 952 struct btrfs_fs_devices *fs_devices; local 1004 __btrfs_free_extra_devids(struct btrfs_fs_devices *fs_devices, struct btrfs_device **latest_dev) argument 1052 btrfs_free_extra_devids(struct btrfs_fs_devices *fs_devices) argument 1083 struct btrfs_fs_devices *fs_devices = device->fs_devices; local 1131 close_fs_devices(struct btrfs_fs_devices *fs_devices) argument 1150 btrfs_close_devices(struct btrfs_fs_devices *fs_devices) argument 1181 open_fs_devices(struct btrfs_fs_devices *fs_devices, blk_mode_t flags, void *holder) argument 1236 btrfs_open_devices(struct btrfs_fs_devices *fs_devices, blk_mode_t flags, void *holder) argument 1327 struct btrfs_fs_devices *fs_devices; local 2120 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; local 2287 struct btrfs_fs_devices *fs_devices; local 2314 struct btrfs_fs_devices *fs_devices = srcdev->fs_devices; local 2341 struct btrfs_fs_devices *fs_devices = tgtdev->fs_info->fs_devices; local 2464 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; local 2510 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; local 2641 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; local 3191 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; local 5259 init_alloc_chunk_ctl_policy_regular( struct btrfs_fs_devices *fs_devices, struct alloc_chunk_ctl *ctl) argument 5280 init_alloc_chunk_ctl_policy_zoned( struct btrfs_fs_devices *fs_devices, struct alloc_chunk_ctl *ctl) argument 5313 init_alloc_chunk_ctl(struct btrfs_fs_devices *fs_devices, struct alloc_chunk_ctl *ctl) argument 5341 gather_device_info(struct btrfs_fs_devices *fs_devices, struct alloc_chunk_ctl *ctl, struct btrfs_device_info *devices_info) argument 5497 decide_stripe_size(struct btrfs_fs_devices *fs_devices, struct alloc_chunk_ctl *ctl, struct btrfs_device_info *devices_info) argument 5704 struct btrfs_fs_devices *fs_devices = info->fs_devices; local 6823 dev_args_match_fs_devices(const struct btrfs_dev_lookup_args *args, const struct btrfs_fs_devices *fs_devices) argument 6857 btrfs_find_device(const struct btrfs_fs_devices *fs_devices, const struct btrfs_dev_lookup_args *args) argument 6882 add_missing_dev(struct btrfs_fs_devices *fs_devices, u64 devid, u8 *dev_uuid) argument 7189 struct btrfs_fs_devices *fs_devices; local 7245 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; local 7650 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices, *seed_devs; local 7744 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices, *seed_devs; local 7844 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; local 7919 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; local [all...] |
H A D | dev-replace.c | 103 if (btrfs_find_device(fs_info->fs_devices, &args)) { 165 if (btrfs_find_device(fs_info->fs_devices, &args)) { 176 dev_replace->tgtdev = btrfs_find_device(fs_info->fs_devices, &args); 178 dev_replace->srcdev = btrfs_find_device(fs_info->fs_devices, &args); 218 WARN_ON(fs_info->fs_devices->rw_devices == 0); 245 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; local 253 if (srcdev->fs_devices->seeding) { 275 list_for_each_entry(device, &fs_devices->devices, dev_list) { 320 device->fs_devices 850 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; local [all...] |
H A D | sysfs.h | 30 void btrfs_sysfs_update_sprout_fsid(struct btrfs_fs_devices *fs_devices);
|
H A D | sysfs.c | 769 if (!fs_info->fs_devices) 788 val = min(mult_perc(fs_info->fs_devices->total_rw_bytes, 10), val); 1150 return sysfs_emit(buf, "%pU\n", fs_info->fs_devices->metadata_uuid); 1221 return sysfs_emit(buf, "%d\n", fs_info->fs_devices->temp_fsid); 1230 struct btrfs_fs_devices *fs_devices = to_fs_devs(kobj); local 1231 const enum btrfs_read_policy policy = READ_ONCE(fs_devices->read_policy); 1255 struct btrfs_fs_devices *fs_devices = to_fs_devs(kobj); local 1260 if (i != READ_ONCE(fs_devices->read_policy)) { 1261 WRITE_ONCE(fs_devices->read_policy, i); 1262 btrfs_info(fs_devices 1314 struct btrfs_fs_devices *fs_devices = to_fs_devs(kobj); local 1333 struct btrfs_fs_devices *fs_devices = to_fs_devs(kobj); local 1506 btrfs_sysfs_remove_fs_devices(struct btrfs_fs_devices *fs_devices) argument 1969 btrfs_sysfs_add_fs_devices(struct btrfs_fs_devices *fs_devices) argument 2007 btrfs_sysfs_update_sprout_fsid(struct btrfs_fs_devices *fs_devices) argument [all...] |
H A D | super.c | 72 btrfs_info(fs_info, "last unmount of filesystem %pU", fs_info->fs_devices->fsid); 729 !fs_info->fs_devices->rotating) 744 fs_info->fs_devices->discardable && 913 struct btrfs_fs_devices *fs_devices, 938 err = open_ctree(sb, fs_devices, (char *)data); 1259 if (fs_info->fs_devices->rw_devices == 0) 1561 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; local 1574 nr_devices = fs_info->fs_devices->open_devices; 1577 nr_devices = fs_info->fs_devices 912 btrfs_fill_super(struct super_block *sb, struct btrfs_fs_devices *fs_devices, void *data) argument 1797 struct btrfs_fs_devices *fs_devices = NULL; local [all...] |
H A D | zoned.c | 335 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; local 343 mutex_lock(&fs_devices->device_list_mutex); 344 list_for_each_entry(device, &fs_devices->devices, dev_list) { 353 mutex_unlock(&fs_devices->device_list_mutex); 672 list_for_each_entry(device, &fs_info->fs_devices->devices, dev_list) { 700 list_for_each_entry(device, &fs_info->fs_devices->devices, dev_list) { 757 fs_info->fs_devices->chunk_alloc_policy = BTRFS_CHUNK_ALLOC_ZONED; 2301 bool btrfs_can_activate_zone(struct btrfs_fs_devices *fs_devices, u64 flags) argument 2303 struct btrfs_fs_info *fs_info = fs_devices 2420 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; local 2438 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; local 2592 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; local [all...] |
H A D | disk-io.c | 291 ASSERT(memcmp_extent_buffer(eb, fs_info->fs_devices->metadata_uuid, 337 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices, *seed_devs; local 344 * alloc_fsid_devices() copies the fsid into fs_devices::metadata_uuid. 347 * fs_devices::metadata_uuid is appropriate here. 349 if (memcmp(fsid, fs_info->fs_devices->metadata_uuid, BTRFS_FSID_SIZE) == 0) 352 list_for_each_entry(seed_devs, &fs_devices->seed_list, seed_list) 2073 struct btrfs_fs_devices *fs_devices) 2082 if (fs_devices->rw_devices == 0) { 2434 if (!fs_info->fs_devices 2072 btrfs_replay_log(struct btrfs_fs_info *fs_info, struct btrfs_fs_devices *fs_devices) argument 3196 open_ctree(struct super_block *sb, struct btrfs_fs_devices *fs_devices, char *options) argument [all...] |
H A D | volumes.h | 101 struct btrfs_fs_devices *fs_devices; member in struct:btrfs_device 326 * - Relations between fsid and metadata_uuid in sb and fs_devices: 328 * fs_devices->fsid == fs_devices->metadata_uuid == sb->fsid 332 * fs_devices->fsid == sb->fsid 333 * fs_devices->metadata_uuid == sb->metadata_uuid 335 * - When in-memory fs_devices->temp_fsid is true 336 * fs_devices->fsid = random 337 * fs_devices->metadata_uuid == sb->fsid 680 int btrfs_open_devices(struct btrfs_fs_devices *fs_devices, [all...] |
H A D | disk-io.h | 56 struct btrfs_fs_devices *fs_devices,
|
H A D | scrub.c | 627 if (memcmp(header->fsid, fs_info->fs_devices->metadata_uuid, 634 header->fsid, fs_info->fs_devices->fsid); 2809 if (scrub_dev->fs_devices != fs_info->fs_devices) 2926 mutex_lock(&fs_info->fs_devices->device_list_mutex); 2927 dev = btrfs_find_device(fs_info->fs_devices, &args); 2930 mutex_unlock(&fs_info->fs_devices->device_list_mutex); 2937 mutex_unlock(&fs_info->fs_devices->device_list_mutex); 2949 mutex_unlock(&fs_info->fs_devices->device_list_mutex); 2960 mutex_unlock(&fs_info->fs_devices [all...] |
H A D | zoned.h | 86 bool btrfs_can_activate_zone(struct btrfs_fs_devices *fs_devices, u64 flags); 235 static inline bool btrfs_can_activate_zone(struct btrfs_fs_devices *fs_devices, argument
|
H A D | bio.c | 614 struct btrfs_fs_devices *fs_devices = bbio->fs_info->fs_devices; local 615 enum btrfs_offload_csum_mode csum_mode = READ_ONCE(fs_devices->offload_csum_mode);
|
H A D | ioctl.c | 457 sysfs_notify(&fs_info->fs_devices->fsid_kobj, NULL, "exclusive_operation"); 521 list_for_each_entry_rcu(device, &fs_info->fs_devices->devices, 1189 device = btrfs_find_device(fs_info->fs_devices, &args); 2688 if (fs_info->fs_devices->temp_fsid) { 2858 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; local 2870 fi_args->num_devices = fs_devices->num_devices; 2872 list_for_each_entry_rcu(device, &fs_devices->devices, dev_list) { 2878 memcpy(&fi_args->fsid, fs_devices->fsid, sizeof(fi_args->fsid)); 2895 memcpy(&fi_args->metadata_uuid, fs_devices [all...] |
H A D | fs.h | 636 struct btrfs_fs_devices *fs_devices; member in struct:btrfs_fs_info
|
H A D | space-info.c | 209 if (fs_info->fs_devices->total_rw_bytes > 50ULL * SZ_1G) 379 mult_perc(fs_info->fs_devices->total_rw_bytes, 10));
|
H A D | extent-tree.c | 4099 if (btrfs_can_activate_zone(fs_info->fs_devices, ffe_ctl->flags)) 5117 write_extent_buffer_fsid(buf, fs_info->fs_devices->metadata_uuid); 6319 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices; local 6383 mutex_lock(&fs_devices->device_list_mutex); 6384 list_for_each_entry(device, &fs_devices->devices, dev_list) { 6397 mutex_unlock(&fs_devices->device_list_mutex);
|
H A D | block-group.c | 74 u64 num_devices = fs_info->fs_devices->rw_devices; 2671 mutex_lock(&fs_info->fs_devices->device_list_mutex); 2681 mutex_unlock(&fs_info->fs_devices->device_list_mutex); 4181 num_dev = fs_info->fs_devices->rw_devices;
|
H A D | ctree.c | 351 write_extent_buffer_fsid(cow, fs_info->fs_devices->metadata_uuid); 590 write_extent_buffer_fsid(cow, fs_info->fs_devices->metadata_uuid);
|
H A D | extent_io.c | 790 bio_set_dev(&bbio->bio, fs_info->fs_devices->latest_dev->bdev); 1702 bio_set_dev(&bbio->bio, fs_info->fs_devices->latest_dev->bdev);
|
H A D | inode.c | 7723 iomap->bdev = fs_info->fs_devices->latest_dev->bdev;
|
/linux-master/fs/btrfs/tests/ |
H A D | btrfs-tests.c | 108 list_add(&dev->dev_list, &fs_info->fs_devices->devices); 126 fs_info->fs_devices = kzalloc(sizeof(struct btrfs_fs_devices), 128 if (!fs_info->fs_devices) { 132 INIT_LIST_HEAD(&fs_info->fs_devices->devices); 137 kfree(fs_info->fs_devices); 190 list_for_each_entry_safe(dev, tmp, &fs_info->fs_devices->devices, 199 kfree(fs_info->fs_devices);
|
/linux-master/include/trace/events/ |
H A D | btrfs.h | 167 memcpy(__entry->fsid, fs_info->fs_devices->fsid, \
|