]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: only warn if we hit an error when doing the tree logging
authorJosef Bacik <jbacik@fusionio.com>
Fri, 24 Aug 2012 18:48:11 +0000 (14:48 -0400)
committerChris Mason <chris.mason@fusionio.com>
Mon, 1 Oct 2012 19:19:03 +0000 (15:19 -0400)
commit1e255d3ade40846d71a2ef4fd32e4ac8df9bc771
tree96ca85c63b0d4698555e0a8029ce2bf0c46b0c93
parent48304ee0ac41e7a722cd9818d04716afd58bd798
Btrfs: only warn if we hit an error when doing the tree logging

I hit this a couple times while working on my fsync patch (all my bugs, not
normal operation), but with my new stuff we could have new errors from cases
I have not encountered, so instead of BUG()'ing we should be WARN()'ing so
that we are notified there is a problem but the user doesn't lose their
data.  We can easily commit the transaction in the case that the tree
logging fails and still be fine, so let's try and be as nice to the user as
possible.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/tree-log.c