]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
btrfs: Don't BUG_ON errors from update_ref_for_cow()
authorMark Fasheh <mfasheh@suse.com>
Mon, 29 Aug 2011 21:30:39 +0000 (14:30 -0700)
committerDavid Sterba <dsterba@suse.cz>
Thu, 22 Mar 2012 00:45:38 +0000 (01:45 +0100)
commitb68dc2a93e794c8507338c91577a277efa4555d5
treeb4e8cbdafdd893a22abbbd7edca989ea018b6a72
parente5df957328b18baa731307c66cfe8e7a4981df65
btrfs: Don't BUG_ON errors from update_ref_for_cow()

__btrfs_cow_block(), the only caller of update_ref_for_cow() will BUG_ON()
any error return.  Instead, we can go read-only fs as update_ref_for_cow()
manipulates disk data in a way which doesn't look like it's easily rolled
back.

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