• Josef Bacik's avatar
    Btrfs: only warn if we hit an error when doing the tree logging · 0fa83cdb
    Josef Bacik authored
    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: default avatarJosef Bacik <jbacik@fusionio.com>
    0fa83cdb
tree-log.c 92 KB