• Home
  • Raw
  • Download

Lines Matching refs:device

1812 	struct btrfs_device *device;  in btrfs_congested_fn()  local
1816 list_for_each_entry_rcu(device, &info->fs_devices->devices, dev_list) { in btrfs_congested_fn()
1817 if (!device->bdev) in btrfs_congested_fn()
1819 bdi = blk_get_backing_dev_info(device->bdev); in btrfs_congested_fn()
3332 struct btrfs_device *device = (struct btrfs_device *) in btrfs_end_buffer_write_sync() local
3335 btrfs_warn_rl_in_rcu(device->dev_root->fs_info, in btrfs_end_buffer_write_sync()
3337 rcu_str_deref(device->name)); in btrfs_end_buffer_write_sync()
3342 btrfs_dev_stat_inc_and_print(device, BTRFS_DEV_STAT_WRITE_ERRS); in btrfs_end_buffer_write_sync()
3426 static int write_dev_supers(struct btrfs_device *device, in write_dev_supers() argument
3443 device->commit_total_bytes) in write_dev_supers()
3447 bh = __find_get_block(device->bdev, bytenr / 4096, in write_dev_supers()
3477 bh = __getblk(device->bdev, bytenr / 4096, in write_dev_supers()
3480 btrfs_err(device->dev_root->fs_info, in write_dev_supers()
3495 bh->b_private = device; in write_dev_supers()
3530 static int write_dev_flush(struct btrfs_device *device, int wait) in write_dev_flush() argument
3535 if (device->nobarriers) in write_dev_flush()
3539 bio = device->flush_bio; in write_dev_flush()
3543 wait_for_completion(&device->flush_wait); in write_dev_flush()
3547 btrfs_dev_stat_inc_and_print(device, in write_dev_flush()
3553 device->flush_bio = NULL; in write_dev_flush()
3562 device->flush_bio = NULL; in write_dev_flush()
3568 bio->bi_bdev = device->bdev; in write_dev_flush()
3570 init_completion(&device->flush_wait); in write_dev_flush()
3571 bio->bi_private = &device->flush_wait; in write_dev_flush()
3572 device->flush_bio = bio; in write_dev_flush()