Skip to content
Commit 305a26af authored by Mark Fasheh's avatar Mark Fasheh Committed by David Sterba
Browse files

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: default avatarMark Fasheh <mfasheh@suse.com>
parent b68dc2a9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment