Lines Matching refs:device_path
508 btrfs_get_bdev_and_sb(const char *device_path, fmode_t flags, void *holder, in btrfs_get_bdev_and_sb() argument
514 *bdev = blkdev_get_by_path(device_path, flags, holder); in btrfs_get_bdev_and_sb()
1908 static void update_dev_time(const char *device_path) in update_dev_time() argument
1914 ret = kern_path(device_path, LOOKUP_FOLLOW, &path); in update_dev_time()
2060 const char *device_path) in btrfs_scratch_superblocks() argument
2095 update_dev_time(device_path); in btrfs_scratch_superblocks()
2098 int btrfs_rm_device(struct btrfs_fs_info *fs_info, const char *device_path, in btrfs_rm_device() argument
2118 device = btrfs_find_device_by_devspec(fs_info, devid, device_path); in btrfs_rm_device()
2122 device_path && strcmp(device_path, "missing") == 0) in btrfs_rm_device()
2336 struct btrfs_fs_info *fs_info, const char *device_path) in btrfs_find_device_by_path() argument
2345 ret = btrfs_get_bdev_and_sb(device_path, FMODE_READ, in btrfs_find_device_by_path()
2371 const char *device_path) in btrfs_find_device_by_devspec() argument
2383 if (!device_path || !device_path[0]) in btrfs_find_device_by_devspec()
2386 if (strcmp(device_path, "missing") == 0) { in btrfs_find_device_by_devspec()
2397 return btrfs_find_device_by_path(fs_info, device_path); in btrfs_find_device_by_devspec()
2544 int btrfs_init_new_device(struct btrfs_fs_info *fs_info, const char *device_path) in btrfs_init_new_device() argument
2563 bdev = blkdev_get_by_path(device_path, FMODE_WRITE | FMODE_EXCL, in btrfs_init_new_device()
2594 name = rcu_string_strdup(device_path, GFP_KERNEL); in btrfs_init_new_device()
2735 btrfs_forget_devices(device_path); in btrfs_init_new_device()
2738 update_dev_time(device_path); in btrfs_init_new_device()