提交 897fb573 编写于 作者: A Anand Jain 提交者: David Sterba

btrfs: rename __btrfs_open_devices to open_fs_devices

__btrfs_open_devices() is un-exported drop __ prefix and rename it to
open_fs_devices().
Signed-off-by: NAnand Jain <anand.jain@oracle.com>
Signed-off-by: NDavid Sterba <dsterba@suse.com>
上级 0226e0eb
...@@ -1101,7 +1101,7 @@ int btrfs_close_devices(struct btrfs_fs_devices *fs_devices) ...@@ -1101,7 +1101,7 @@ int btrfs_close_devices(struct btrfs_fs_devices *fs_devices)
return ret; return ret;
} }
static int __btrfs_open_devices(struct btrfs_fs_devices *fs_devices, static int open_fs_devices(struct btrfs_fs_devices *fs_devices,
fmode_t flags, void *holder) fmode_t flags, void *holder)
{ {
struct btrfs_device *device; struct btrfs_device *device;
...@@ -1155,7 +1155,7 @@ int btrfs_open_devices(struct btrfs_fs_devices *fs_devices, ...@@ -1155,7 +1155,7 @@ int btrfs_open_devices(struct btrfs_fs_devices *fs_devices,
ret = 0; ret = 0;
} else { } else {
list_sort(NULL, &fs_devices->devices, devid_cmp); list_sort(NULL, &fs_devices->devices, devid_cmp);
ret = __btrfs_open_devices(fs_devices, flags, holder); ret = open_fs_devices(fs_devices, flags, holder);
} }
mutex_unlock(&uuid_mutex); mutex_unlock(&uuid_mutex);
return ret; return ret;
...@@ -6718,8 +6718,7 @@ static struct btrfs_fs_devices *open_seed_devices(struct btrfs_fs_info *fs_info, ...@@ -6718,8 +6718,7 @@ static struct btrfs_fs_devices *open_seed_devices(struct btrfs_fs_info *fs_info,
if (IS_ERR(fs_devices)) if (IS_ERR(fs_devices))
return fs_devices; return fs_devices;
ret = __btrfs_open_devices(fs_devices, FMODE_READ, ret = open_fs_devices(fs_devices, FMODE_READ, fs_info->bdev_holder);
fs_info->bdev_holder);
if (ret) { if (ret) {
free_fs_devices(fs_devices); free_fs_devices(fs_devices);
fs_devices = ERR_PTR(ret); fs_devices = ERR_PTR(ret);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册