Btrfs: skip building backref tree for uuid and quota tree when doing balance relocation
authorWang Shilong <wangsl.fnst@cn.fujitsu.com>
Mon, 9 Dec 2013 16:14:34 +0000 (00:14 +0800)
committerChris Mason <clm@fb.com>
Thu, 12 Dec 2013 15:12:36 +0000 (07:12 -0800)
Quota tree and UUID Tree is only cowed, they can not be snapshoted.

Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/relocation.c

index 7cdc76007c6cc30ea2ceea6d41561a53d0d51dbe..0a3f025620530b93badba92bf6688de6cf92bca3 100644 (file)
@@ -571,7 +571,9 @@ static int is_cowonly_root(u64 root_objectid)
            root_objectid == BTRFS_CHUNK_TREE_OBJECTID ||
            root_objectid == BTRFS_DEV_TREE_OBJECTID ||
            root_objectid == BTRFS_TREE_LOG_OBJECTID ||
-           root_objectid == BTRFS_CSUM_TREE_OBJECTID)
+           root_objectid == BTRFS_CSUM_TREE_OBJECTID ||
+           root_objectid == BTRFS_UUID_TREE_OBJECTID ||
+           root_objectid == BTRFS_QUOTA_TREE_OBJECTID)
                return 1;
        return 0;
 }