Lines Matching defs:devt
552 * @devt: Optional. When provided will it release all unmounted devices
553 * matching this devt only.
557 * Return: 0 for success or if @devt is 0.
558 * -EBUSY if @devt is a mounted device.
559 * -ENOENT if @devt does not match any device in the list.
561 static int btrfs_free_stale_devices(dev_t devt, struct btrfs_device *skip_device)
569 if (devt)
579 if (devt && devt != device->devt)
583 if (devt && ret != 0)
872 device->devt = path_devt;
943 if (device->devt != path_devt) {
970 device->devt = path_devt;
1345 int btrfs_forget_devices(dev_t devt)
1350 ret = btrfs_free_stale_devices(devt, NULL);
1408 btrfs_free_stale_devices(device->devt, device);
2668 ret = lookup_bdev(device_path, &device->devt);
2816 btrfs_forget_devices(device->devt);