btrfs: replace BUG in can_modify_feature
authorDavid Sterba <dsterba@suse.cz>
Tue, 19 Nov 2013 12:36:21 +0000 (13:36 +0100)
committerChris Mason <clm@fb.com>
Tue, 28 Jan 2014 21:19:41 +0000 (13:19 -0800)
commitcc37bb04201217b7acb11213e16cb5530c30da8f
treec27e7ecb38db667734de53619ebb00995d41521d
parent43d87fa23154d135a2a1006bc6656ae73ae84190
btrfs: replace BUG in can_modify_feature

We don't need to crash hard here, it's just reading a sysfs file. The
values considered in switch are from a fixed set, the default case
should not happen at all.

Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/sysfs.c