btrfs: add free space tree to the cow-only list
authorDavid Sterba <dsterba@suse.com>
Mon, 25 Jan 2016 15:47:10 +0000 (16:47 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Jan 2016 15:48:07 +0000 (16:48 +0100)
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/relocation.c

index ef6d8fc85853851da0da03923b75421982d65d8f..c5540302402d6f3178550da3f110a4ece724be2f 100644 (file)
@@ -575,7 +575,8 @@ static int is_cowonly_root(u64 root_objectid)
            root_objectid == BTRFS_TREE_LOG_OBJECTID ||
            root_objectid == BTRFS_CSUM_TREE_OBJECTID ||
            root_objectid == BTRFS_UUID_TREE_OBJECTID ||
-           root_objectid == BTRFS_QUOTA_TREE_OBJECTID)
+           root_objectid == BTRFS_QUOTA_TREE_OBJECTID ||
+           root_objectid == BTRFS_FREE_SPACE_TREE_OBJECTID)
                return 1;
        return 0;
 }