diff options
author | Anand Jain <anand.jain@oracle.com> | 2015-03-09 23:38:34 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2015-05-27 12:27:21 +0200 |
commit | 6c14a1641bfaa213bb3c5bcb7f4d8cde234ada70 (patch) | |
tree | 5294abae1abd966bc18b58ce4dbc969f1b710c76 /fs/btrfs/volumes.c | |
parent | Btrfs: sysfs btrfs_kobj_add_device() pass fs_devices instead of fs_info (diff) | |
download | linux-6c14a1641bfaa213bb3c5bcb7f4d8cde234ada70.tar.xz linux-6c14a1641bfaa213bb3c5bcb7f4d8cde234ada70.zip |
Btrfs: sysfs btrfs_kobj_rm_device() pass fs_devices instead of fs_info
since btrfs_kobj_rm_device() does nothing with fs_info
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r-- | fs/btrfs/volumes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index d68d3944af4b..b5cc129bfa4b 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -1710,7 +1710,7 @@ int btrfs_rm_device(struct btrfs_root *root, char *device_path) if (device->bdev) { device->fs_devices->open_devices--; /* remove sysfs entry */ - btrfs_kobj_rm_device(root->fs_info, device); + btrfs_kobj_rm_device(root->fs_info->fs_devices, device); } call_rcu(&device->rcu, free_device); @@ -2294,7 +2294,7 @@ int btrfs_init_new_device(struct btrfs_root *root, char *device_path) error_trans: btrfs_end_transaction(trans, root); rcu_string_free(device->name); - btrfs_kobj_rm_device(root->fs_info, device); + btrfs_kobj_rm_device(root->fs_info->fs_devices, device); kfree(device); error: blkdev_put(bdev, FMODE_EXCL); |