]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: change btrfs_fs_devices::rotating to bool
authorJohannes Thumshirn <jthumshirn@suse.de>
Wed, 13 Nov 2019 10:27:28 +0000 (11:27 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 18 Nov 2019 16:51:51 +0000 (17:51 +0100)
commit36795ccae99463f9d5efb2ea8569df02124a1997
treedeb4e38c7013ca78907114ffe92e0b13936dfd32
parent752eb28098d5abc70c70a2d2c93112dd9c99b9b2
btrfs: change btrfs_fs_devices::rotating to bool

struct btrfs_fs_devices::rotating currently is declared as an integer
variable but only used as a boolean.

Change the variable definition to bool and update to code touching it to
set 'true' and 'false'.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c
fs/btrfs/volumes.h