]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: stop joining the log transaction if sync log fails
authorMiao Xie <miaox@cn.fujitsu.com>
Thu, 20 Feb 2014 10:08:57 +0000 (18:08 +0800)
committerJosef Bacik <jbacik@fb.com>
Mon, 10 Mar 2014 19:16:44 +0000 (15:16 -0400)
commiteb70022a81118b7b486dcd876882886448b793c7
tree976e7e9b2a40fe2f81e0a8a6b943368ac2810005
parentd5feb55560d049c1f8c851130cb8a9b258d6b464
Btrfs: stop joining the log transaction if sync log fails

If the log sync fails, there is something wrong in the log tree, we
should not continue to join the log transaction and log the metadata.
What we should do is to do a full commit.

This patch fixes this problem by setting ->last_trans_log_full_commit
to the current transaction id, it will tell the tasks not to join
the log transaction, and do a full commit.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fb.com>
fs/btrfs/tree-log.c