Btrfs: do not bug_on if we try to cow a free space cache inode
authorJosef Bacik <[email protected]>
Fri, 25 Oct 2013 20:19:08 +0000 (16:19 -0400)
committerChris Mason <[email protected]>
Tue, 12 Nov 2013 03:07:49 +0000 (22:07 -0500)
commit02ecd2c278471a3a7fd255662df92861c6759ebf
treec0d87c47214726e180318fc12772cfb880e5edb0
parent0ef8b726075aa6931ddf1c16f5bae043eef184f9
Btrfs: do not bug_on if we try to cow a free space cache inode

We can just return an error and we'll bail out properly.  We still want to catch
this case to make sure we don't have a bug somewhere, so just warn if this pops
up.  Thanks,

Signed-off-by: Josef Bacik <[email protected]>
Signed-off-by: Chris Mason <[email protected]>
fs/btrfs/inode.c