]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: Go readonly on bad extent refs in update_ref_for_cow()
authorMark Fasheh <mfasheh@suse.com>
Mon, 29 Aug 2011 21:17:04 +0000 (14:17 -0700)
committerDavid Sterba <dsterba@suse.cz>
Thu, 22 Mar 2012 00:45:37 +0000 (01:45 +0100)
commit3b0a1dbaf1fa3fabf797f0c6c45c511a4832b815
tree19f092c1e65c639c17a2fc0582d01b0ebfb3e3a7
parentf1b85f13f06de6d46cbb167ec197b09924f060cd
btrfs: Go readonly on bad extent refs in update_ref_for_cow()

update_ref_for_cow() will BUG_ON() after it's call to
btrfs_lookup_extent_info() if no existing references are found.  Since refs
are computed directly from disk, this should be treated as a corruption
instead of a logic error.

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