btrfs: convert btrfs_get_global_root to use a switch statement
authorChristoph Hellwig <hch@lst.de>
Tue, 23 May 2023 08:40:19 +0000 (10:40 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2023 11:59:29 +0000 (13:59 +0200)
commite91909aace336a182da20bcbe507995ac24f74bb
tree4c45b3ba625e7a697c43674e7c59f7e68d12680e
parent85724171b302914bb8999b9df091fd4616a36eb7
btrfs: convert btrfs_get_global_root to use a switch statement

Use a switch statement instead of an endless chain of if statements
to make the code a little cleaner.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c