Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 66463748 authored by Wang Shilong's avatar Wang Shilong Committed by Chris Mason
Browse files

Btrfs: skip building backref tree for uuid and quota tree when doing balance relocation



Quota tree and UUID Tree is only cowed, they can not be snapshoted.

Signed-off-by: default avatarWang Shilong <wangsl.fnst@cn.fujitsu.com>
Signed-off-by: default avatarChris Mason <clm@fb.com>
parent c974c464
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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;
}