From: Miao Xie Date: Thu, 6 Sep 2012 10:04:27 +0000 (-0600) Subject: Btrfs: fix unprotected ->log_batch X-Git-Tag: v3.7-rc1~71^2~70 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ecb79239bcd04c9d410f4cdce16adb6840b19da;p=pandora-kernel.git 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 --- Reading git-diff-tree failed