commit | 2ecb79239bcd04c9d410f4cdce16adb6840b19da | [log] [tgz] |
---|---|---|
author | Miao Xie <miaox@cn.fujitsu.com> | Thu Sep 06 04:04:27 2012 -0600 |
committer | Chris Mason <chris.mason@fusionio.com> | Mon Oct 01 15:19:12 2012 -0400 |
tree | 9a2194dde73a1a822fa011c35745c3aafa316f86 | |
parent | 48c03c4bcfd7a1fcb1e05e9b1db1188cdbecf49a [diff] |
Btrfs: fix unprotected ->log_batch We forget to protect ->log_batch when syncing a file, this patch fix this problem by atomic operation. And ->log_batch is used to check if there are parallel sync operations or not, so it is unnecessary to reset it to 0 after the sync operation of the current log tree complete. Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>