]> 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)
commita9e0dc524171884c48a519b0d2641d2cc31d906b
treeb4e8cbdafdd893a22abbbd7edca989ea018b6a72
parent3b0a1dbaf1fa3fabf797f0c6c45c511a4832b815
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