]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix the skipped transaction commit during the file sync
authorMiao Xie <miaox@cn.fujitsu.com>
Thu, 20 Feb 2014 10:08:52 +0000 (18:08 +0800)
committerJosef Bacik <jbacik@fb.com>
Mon, 10 Mar 2014 19:16:40 +0000 (15:16 -0400)
commit5917b63a64683ce3b13c2757fdb17b8e7c5a81cc
tree1767dcb212dc53386e30e4bafa13b1bc8f475785
parent7de27a117ddc77f84ed97c7227d8e79f1b318332
Btrfs: fix the skipped transaction commit during the file sync

We may abort the wait earlier if ->last_trans_log_full_commit was set to
the current transaction id, at this case, we need commit the current
transaction instead of the log sub-transaction. But the current code
didn't tell the caller to do it (return 0, not -EAGAIN). Fix it.

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