commit | 48cab2e0714913a63155f800a55609a4ff6a36b9 | [log] [tgz] |
---|---|---|
author | Miao Xie <miaox@cn.fujitsu.com> | Thu Feb 20 18:08:52 2014 +0800 |
committer | Josef Bacik <jbacik@fb.com> | Mon Mar 10 15:16:40 2014 -0400 |
tree | 1767dcb212dc53386e30e4bafa13b1bc8f475785 | |
parent | 5c902ba6223f6a6575054226931fafc51314a25f [diff] |
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>