diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2013-06-06 03:28:03 +0000 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2013-07-01 08:52:25 -0400 |
commit | 5bc7247ac47cf100309e4d7e24214889c46a1636 (patch) | |
tree | 2e28c383acea82994e54c330ba7345b436b69656 /init | |
parent | 8c2a1a3028d560cfb95f1c583e872c65ed2f0b3d (diff) |
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 <kylegates@hotmail.com>
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions