提交 0d34097f 编写于 作者: A Anand Jain 提交者: David Sterba

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: NAnand Jain <anand.jain@oracle.com>
Reviewed-by: NJosef Bacik <jbacik@fb.com>
Signed-off-by: NDavid Sterba <dsterba@suse.com>
上级 522f1b45
...@@ -605,7 +605,7 @@ static void pending_bios_fn(struct btrfs_work *work) ...@@ -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_fs_devices *fs_devs, *tmp_fs_devs;
struct btrfs_device *dev, *tmp_dev; struct btrfs_device *dev, *tmp_dev;
...@@ -619,7 +619,7 @@ static void btrfs_free_stale_devices(struct btrfs_device *cur_dev) ...@@ -619,7 +619,7 @@ static void btrfs_free_stale_devices(struct btrfs_device *cur_dev)
&fs_devs->devices, dev_list) { &fs_devs->devices, dev_list) {
int not_found = 0; int not_found = 0;
if (cur_dev && (cur_dev == dev || !dev->name)) if (skip_dev && (skip_dev == dev || !dev->name))
continue; continue;
/* /*
...@@ -629,9 +629,9 @@ static void btrfs_free_stale_devices(struct btrfs_device *cur_dev) ...@@ -629,9 +629,9 @@ static void btrfs_free_stale_devices(struct btrfs_device *cur_dev)
* either use mapper or non mapper path throughout. * either use mapper or non mapper path throughout.
*/ */
rcu_read_lock(); rcu_read_lock();
if (cur_dev) if (skip_dev)
not_found = strcmp(rcu_str_deref(dev->name), not_found = strcmp(rcu_str_deref(dev->name),
rcu_str_deref(cur_dev->name)); rcu_str_deref(skip_dev->name));
rcu_read_unlock(); rcu_read_unlock();
if (not_found) if (not_found)
continue; continue;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册