diff options
author | Anand Jain <anand.jain@oracle.com> | 2019-01-04 08:31:53 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-02-25 16:13:23 +0300 |
commit | 70bc7088aaedd7260fcdc18ecebc60881771acb3 (patch) | |
tree | aa56e91be575a37b4387b1e004955f17360a6664 /fs/ioctl.c | |
parent | e4319cd9cacef80a2d289f235b939ab8bd614683 (diff) | |
download | linux-70bc7088aaedd7260fcdc18ecebc60881771acb3.tar.xz |
btrfs: refactor btrfs_free_stale_devices() to get return value
Preparatory patch to add ioctl that allows to forget a device (ie.
reverse of scan).
Refactors btrfs_free_stale_devices() to obtain return status. As this
function can fail if it can't find the given path (returns -ENOENT) or
trying to delete a mounted device (returns -EBUSY).
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/ioctl.c')
0 files changed, 0 insertions, 0 deletions