Lines Matching refs:device
1248 struct btrfs_device *device; in btrfs_congested_fn() local
1255 list_for_each_entry(device, &info->fs_devices->devices, dev_list) { in btrfs_congested_fn()
1256 if (!device->bdev) in btrfs_congested_fn()
1258 bdi = blk_get_backing_dev_info(device->bdev); in btrfs_congested_fn()
1273 struct btrfs_device *device; in __unplug_io_fn() local
1277 list_for_each_entry(device, &info->fs_devices->devices, dev_list) { in __unplug_io_fn()
1278 if (!device->bdev) in __unplug_io_fn()
1281 bdi = blk_get_backing_dev_info(device->bdev); in __unplug_io_fn()
2009 static int write_dev_supers(struct btrfs_device *device, in write_dev_supers() argument
2029 device->total_bytes) in write_dev_supers()
2037 if (bytenr + BTRFS_SUPER_INFO_SIZE >= device->total_bytes) in write_dev_supers()
2041 bh = __find_get_block(device->bdev, bytenr / 4096, in write_dev_supers()
2060 bh = __getblk(device->bdev, bytenr / 4096, in write_dev_supers()
2070 if (i == last_barrier && do_barriers && device->barriers) { in write_dev_supers()
2074 device->name); in write_dev_supers()
2076 device->barriers = 0; in write_dev_supers()