btrfs: dev-replace: move replace members out of fs_info
authorDavid Sterba <dsterba@suse.com>
Wed, 4 Apr 2018 23:04:49 +0000 (01:04 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 15 Oct 2018 15:23:38 +0000 (17:23 +0200)
commit7f8d236ae132a8886a0186008c828e21f7460474
tree63bf1e2dd346ebefa152cc911919eb9f47254e33
parentaa144bfeaa7f87c536ab323edfe2692285343e68
btrfs: dev-replace: move replace members out of fs_info

The replace_wait and bio_counter were mistakenly added to fs_info in
commit c404e0dc2c843b154f ("Btrfs: fix use-after-free in the finishing
procedure of the device replace"), but they logically belong to
fs_info::dev_replace. Besides, bio_counter is a very generic name and is
confusing in bare fs_info context.

Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.h
fs/btrfs/dev-replace.c
fs/btrfs/disk-io.c