]> git.ipfire.org Git - thirdparty/linux.git/commit
btrfs: change block mapping to switch/case in btrfs_map_block
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>
Wed, 13 Dec 2023 14:43:05 +0000 (06:43 -0800)
committerDavid Sterba <dsterba@suse.com>
Fri, 15 Dec 2023 22:03:59 +0000 (23:03 +0100)
commitb55b307785ad88298914bc5c18c7d37bc5b88cb7
treed93ac40815f1858b73f8ccf9e526521beb17a156
parenta16fb8c6f61863f18fab61eeba10a457ff6d71d2
btrfs: change block mapping to switch/case in btrfs_map_block

Now that all the per-profile if/else statement blocks have been
converted to calls to helper the conversion to switch/case is
straightforward.

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