summaryrefslogtreecommitdiff
path: root/fs/btrfs
diff options
context:
space:
mode:
authorAnand Jain <anand.jain@oracle.com>2018-01-18 17:00:36 +0300
committerDavid Sterba <dsterba@suse.com>2018-01-22 22:25:50 +0300
commit0d34097f66831843a0e27f65fed23c41d07d44aa (patch)
tree3ebf8f84f4fa68ff406c46f0061f0b450318a97b /fs/btrfs
parent522f1b45e41d893e4d1debd7f80c1e25e060c137 (diff)
downloadlinux-0d34097f66831843a0e27f65fed23c41d07d44aa.tar.xz
btrfs: rename btrfs_free_stale_devices() arg to skip_dev
No functional changes. Rename btrfs_free_stale_devices() arg to skip_dev, so that it reflects what that arg for. Signed-off-by: Anand Jain <anand.jain@oracle.com> Reviewed-by: Josef Bacik <jbacik@fb.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/volumes.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index 9712377862d9..7d33bd2a0fb4 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -605,7 +605,7 @@ static void pending_bios_fn(struct btrfs_work *work)
}
-static void btrfs_free_stale_devices(struct btrfs_device *cur_dev)
+static void btrfs_free_stale_devices(struct btrfs_device *skip_dev)
{
struct btrfs_fs_devices *fs_devs, *tmp_fs_devs;
struct btrfs_device *dev, *tmp_dev;
@@ -619,7 +619,7 @@ static void btrfs_free_stale_devices(struct btrfs_device *cur_dev)
&fs_devs->devices, dev_list) {
int not_found = 0;
- if (cur_dev && (cur_dev == dev || !dev->name))
+ if (skip_dev && (skip_dev == dev || !dev->name))
continue;
/*
@@ -629,9 +629,9 @@ static void btrfs_free_stale_devices(struct btrfs_device *cur_dev)
* either use mapper or non mapper path throughout.
*/
rcu_read_lock();
- if (cur_dev)
+ if (skip_dev)
not_found = strcmp(rcu_str_deref(dev->name),
- rcu_str_deref(cur_dev->name));
+ rcu_str_deref(skip_dev->name));
rcu_read_unlock();
if (not_found)
continue;