]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: cleanup device states define BTRFS_DEV_STATE_FLUSH_SENT
authorAnand Jain <anand.jain@oracle.com>
Mon, 4 Dec 2017 04:54:56 +0000 (12:54 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Jan 2018 15:08:15 +0000 (16:08 +0100)
commit554cc8d1e5193a74856b685421e806e33b191161
treee4df0de3e41f4dae08743ab4e988c07e2b70ccba
parenteb5d1d5ea948f0c1e3d85560df5df9fcb0ca5f3f
btrfs: cleanup device states define BTRFS_DEV_STATE_FLUSH_SENT

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_FLUSH_SENT and use the bit operations.

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