]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: on unknown chunk allocation policy fallback to regular
authorDavid Sterba <dsterba@suse.com>
Wed, 23 Apr 2025 06:29:14 +0000 (08:29 +0200)
committerDavid Sterba <dsterba@suse.com>
Thu, 15 May 2025 12:30:49 +0000 (14:30 +0200)
commit13d6d866e8ca25555f0599fe9408cb86afda85f2
tree5bc221c37291d0c434e3a2d054032b4fbbc0f683
parent3329d3d83313b138ed6d571fb2337a7cca054fa8
btrfs: on unknown chunk allocation policy fallback to regular

We have only two chunk allocation policies right now and the
switch/cases don't handle an unknown one properly. The error is in the
impossible category (the policy is stored only in memory), we don't have
to BUG(), falling back to regular policy should be safe.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c
fs/btrfs/volumes.h