]> git.baikalelectronics.ru Git - 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)
commitf1a5197a29ab108e28605cb546657dd71035fc1e
treeb4e8cbdafdd893a22abbbd7edca989ea018b6a72
parent7221e99cc849e76cd47dd5746d8ddd5eb498565a
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