Home
last modified time | relevance | path

Searched refs:dev_state (Results 1 – 12 of 12) sorted by relevance

/fs/btrfs/
Dcheck-integrity.c140 struct btrfsic_dev_state *dev_state; member
311 struct btrfsic_dev_state *dev_state,
319 struct btrfsic_dev_state *dev_state,
330 b->dev_state = NULL; in btrfsic_block_init()
408 ds->dummy_block_for_bio_bh_flush.dev_state = ds; in btrfsic_dev_state_init()
442 ((unsigned int)((uintptr_t)b->dev_state->bdev))) & in btrfsic_block_hashtable_add()
465 if (b->dev_state->bdev == bdev && b->dev_bytenr == dev_bytenr) in btrfsic_block_hashtable_lookup()
488 ((unsigned int)((uintptr_t)l->block_ref_to->dev_state->bdev)) ^ in btrfsic_block_link_hashtable_add()
489 ((unsigned int)((uintptr_t)l->block_ref_from->dev_state->bdev))) in btrfsic_block_link_hashtable_add()
520 if (l->block_ref_to->dev_state->bdev == bdev_ref_to && in btrfsic_block_link_hashtable_lookup()
[all …]
Dvolumes.c633 clear_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state); in btrfs_open_one_device()
637 clear_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state); in btrfs_open_one_device()
639 set_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state); in btrfs_open_one_device()
646 clear_bit(BTRFS_DEV_STATE_IN_FS_METADATA, &device->dev_state); in btrfs_open_one_device()
650 if (test_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state) && in btrfs_open_one_device()
967 if (test_bit(BTRFS_DEV_STATE_MISSING, &device->dev_state)) { in device_list_add()
969 clear_bit(BTRFS_DEV_STATE_MISSING, &device->dev_state); in device_list_add()
1061 if (test_bit(BTRFS_DEV_STATE_IN_FS_METADATA, &device->dev_state)) { in __btrfs_free_extra_devids()
1063 &device->dev_state) && in __btrfs_free_extra_devids()
1065 &device->dev_state) && in __btrfs_free_extra_devids()
[all …]
Ddev-replace.c217 &dev_replace->tgtdev->dev_state); in btrfs_init_dev_replace()
225 &dev_replace->tgtdev->dev_state); in btrfs_init_dev_replace()
310 set_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state); in btrfs_init_dev_replace_tgtdev()
322 set_bit(BTRFS_DEV_STATE_IN_FS_METADATA, &device->dev_state); in btrfs_init_dev_replace_tgtdev()
323 set_bit(BTRFS_DEV_STATE_REPLACE_TGT, &device->dev_state); in btrfs_init_dev_replace_tgtdev()
461 if (!device || test_bit(BTRFS_DEV_STATE_MISSING, &device->dev_state)) in btrfs_dev_name()
960 clear_bit(BTRFS_DEV_STATE_REPLACE_TGT, &tgt_device->dev_state); in btrfs_dev_replace_finishing()
1003 if (test_bit(BTRFS_DEV_STATE_WRITEABLE, &src_device->dev_state)) in btrfs_dev_replace_finishing()
Ddisk-io.c4231 set_bit(BTRFS_DEV_STATE_FLUSH_SENT, &device->dev_state); in write_dev_flush()
4241 if (!test_bit(BTRFS_DEV_STATE_FLUSH_SENT, &device->dev_state)) in wait_dev_flush()
4244 clear_bit(BTRFS_DEV_STATE_FLUSH_SENT, &device->dev_state); in wait_dev_flush()
4272 if (test_bit(BTRFS_DEV_STATE_MISSING, &dev->dev_state)) in barrier_all_devices()
4276 if (!test_bit(BTRFS_DEV_STATE_IN_FS_METADATA, &dev->dev_state) || in barrier_all_devices()
4277 !test_bit(BTRFS_DEV_STATE_WRITEABLE, &dev->dev_state)) in barrier_all_devices()
4286 if (test_bit(BTRFS_DEV_STATE_MISSING, &dev->dev_state)) in barrier_all_devices()
4292 if (!test_bit(BTRFS_DEV_STATE_IN_FS_METADATA, &dev->dev_state) || in barrier_all_devices()
4293 !test_bit(BTRFS_DEV_STATE_WRITEABLE, &dev->dev_state)) in barrier_all_devices()
4390 if (!test_bit(BTRFS_DEV_STATE_IN_FS_METADATA, &dev->dev_state) || in write_all_supers()
[all …]
Dsysfs.c1654 val = !!test_bit(BTRFS_DEV_STATE_IN_FS_METADATA, &device->dev_state); in btrfs_devinfo_in_fs_metadata_show()
1667 val = !!test_bit(BTRFS_DEV_STATE_MISSING, &device->dev_state); in btrfs_devinfo_missing_show()
1681 val = !!test_bit(BTRFS_DEV_STATE_REPLACE_TGT, &device->dev_state); in btrfs_devinfo_replace_target_show()
1724 val = !!test_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state); in btrfs_devinfo_writeable_show()
Dscrub.c2482 if (test_bit(BTRFS_DEV_STATE_MISSING, &dev->dev_state)) { in scrub_sectors()
2844 if (test_bit(BTRFS_DEV_STATE_MISSING, &dev->dev_state)) { in scrub_extent_for_parity()
4313 if (!dev || (test_bit(BTRFS_DEV_STATE_MISSING, &dev->dev_state) && in btrfs_scrub_dev()
4321 !test_bit(BTRFS_DEV_STATE_WRITEABLE, &dev->dev_state)) { in btrfs_scrub_dev()
4331 if (!test_bit(BTRFS_DEV_STATE_IN_FS_METADATA, &dev->dev_state) || in btrfs_scrub_dev()
4332 test_bit(BTRFS_DEV_STATE_REPLACE_TGT, &dev->dev_state)) { in btrfs_scrub_dev()
Dvolumes.h114 unsigned long dev_state; member
Dsuper.c2270 &device->dev_state) || in btrfs_calc_avail_data_space()
2272 test_bit(BTRFS_DEV_STATE_REPLACE_TGT, &device->dev_state)) in btrfs_calc_avail_data_space()
Dblock-group.c2414 WARN_ON(!test_bit(BTRFS_DEV_STATE_IN_FS_METADATA, &device->dev_state)); in insert_dev_extent()
2415 WARN_ON(test_bit(BTRFS_DEV_STATE_REPLACE_TGT, &device->dev_state)); in insert_dev_extent()
Dextent-tree.c1355 &stripe->dev->dev_state)) in btrfs_discard_extent()
6087 if (!test_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state)) in btrfs_trim_free_extents()
6242 if (test_bit(BTRFS_DEV_STATE_MISSING, &device->dev_state)) in btrfs_trim_fs()
Dioctl.c2055 if (!test_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state)) { in btrfs_ioctl_resize()
2080 if (test_bit(BTRFS_DEV_STATE_REPLACE_TGT, &device->dev_state)) { in btrfs_ioctl_resize()
Dextent_io.c601 !test_bit(BTRFS_DEV_STATE_WRITEABLE, &dev->dev_state)) { in repair_io_failure()