From: Miao Xie Date: Thu, 6 Jun 2013 03:28:03 +0000 (+0000) Subject: Btrfs: fix broken nocow after balance X-Git-Tag: v3.11-rc1~70^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5bc7247ac47cf100309e4d7e24214889c46a1636;p=pandora-kernel.git Btrfs: fix broken nocow after balance Balance will create reloc_root for each fs root, and it's going to record last_snapshot to filter shared blocks. The side effect of setting last_snapshot is to break nocow attributes of files. Since the extents are not shared by the relocation tree after the balance, we can recover the old last_snapshot safely if no one snapshoted the source tree. We fix the above problem by this way. Reported-by: Kyle Gates Signed-off-by: Liu Bo Signed-off-by: Miao Xie Signed-off-by: Josef Bacik --- Reading git-diff-tree failed