]> 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)
commit4f47db08ebbbc819a031e478a0b13295c725b939
treedeb4e38c7013ca78907114ffe92e0b13936dfd32
parent941768cb4a0c5adb4bb897dd9af7859b6f63a545
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