btrfs: cleanup device states define BTRFS_DEV_STATE_REPLACE_TGT
authorAnand Jain <anand.jain@oracle.com>
Mon, 4 Dec 2017 04:54:55 +0000 (12:54 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Jan 2018 15:08:15 +0000 (16:08 +0100)
commit401e29c124eac2b9373eb72f36f202561da339d2
treeeb32408cafe3f1f2b5f24a8f2a5e2e6d23150d9e
parente6e674bd4d54fe8d47a06914f3b90752785b4882
btrfs: cleanup device states define BTRFS_DEV_STATE_REPLACE_TGT

Currently device state is being managed by each individual int
variable such as struct btrfs_device::is_tgtdev_for_dev_replace.
Instead of that declare btrfs_device::dev_state
BTRFS_DEV_STATE_MISSING and use the bit operations.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
[ whitespace adjustments ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/dev-replace.c
fs/btrfs/extent-tree.c
fs/btrfs/ioctl.c
fs/btrfs/scrub.c
fs/btrfs/super.c
fs/btrfs/volumes.c
fs/btrfs/volumes.h