]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: Add graceful handling of V0 extents
authorNikolay Borisov <nborisov@suse.com>
Tue, 26 Jun 2018 13:57:36 +0000 (16:57 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 6 Aug 2018 11:12:41 +0000 (13:12 +0200)
commit056d312e3841649e089aa65bd15c5826230c23e2
treeab2b0b500783df91dbf434d18617882830b23120
parentdab46c06deac637382ae016c34d1e64c7a89d494
btrfs: Add graceful handling of V0 extents

Following the removal of the v0 handling code let's be courteous and
print an error message when such extents are handled. In the cases
where we have a transaction just abort it, otherwise just call
btrfs_handle_fs_error. Both cases result in the FS being re-mounted RO.

In case the error handling would be too intrusive, leave the BUG_ON in
place, like extent_data_ref_count, other proper handling would catch
that earlier.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.h
fs/btrfs/extent-tree.c
fs/btrfs/print-tree.c
fs/btrfs/relocation.c