]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: Go readonly on tree errors in balance_level
authorMark Fasheh <mfasheh@suse.com>
Thu, 1 Sep 2011 18:27:57 +0000 (11:27 -0700)
committerDavid Sterba <dsterba@suse.cz>
Thu, 22 Mar 2012 00:45:38 +0000 (01:45 +0100)
commitf620646122d994064922954ee2a4031680ebdb78
tree9afdcd2ccbe2a72b7dadaf25f92a4a1ec109ecfe
parenta9e0dc524171884c48a519b0d2641d2cc31d906b
btrfs: Go readonly on tree errors in balance_level

balace_level() seems to deal with missing tree nodes by BUG_ON(). Instead,
we can easily just set the file system readonly and bubble -EROFS back up
the stack.

Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/btrfs/ctree.c