From: Miao Xie Date: Thu, 1 Nov 2012 07:33:14 +0000 (+0000) Subject: Btrfs: fix missing flush when committing a transaction X-Git-Tag: v3.8-rc1~71^2~94 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca46963718ef7368c84267c9f5e7394c3890442a;p=pandora-kernel.git Btrfs: fix missing flush when committing a transaction Consider the following case: Task1 Task2 start_transaction commit_transaction check pending snapshots list and the list is empty. add pending snapshot into list skip the delalloc flush end_transaction ... And then the problem that the snapshot is different with the source subvolume happen. This patch fixes the above problem by flush all pending stuffs when all the other tasks end the transaction. Signed-off-by: Miao Xie Signed-off-by: Chris Mason --- Reading git-diff-tree failed