From 95c49ef7f76539f8b328ee8800c57cead7d28530 Mon Sep 17 00:00:00 2001 From: Anand Jain Date: Wed, 28 Aug 2019 22:06:05 +0800 Subject: [PATCH] btrfs-progs: print-tree: add BTRFS_DEV_ITEMS_OBJECTID in comment So when searching for BTRFS_DEV_ITEMS_OBJECTID, it hits, albeit it is defined same as BTRFS_ROOT_TREE_OBJECTID. Reviewed-by: Qu Wenruo Signed-off-by: Anand Jain Signed-off-by: David Sterba --- print-tree.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/print-tree.c b/print-tree.c index e079f1a9..31202027 100644 --- a/print-tree.c +++ b/print-tree.c @@ -711,6 +711,11 @@ void print_objectid(FILE *stream, u64 objectid, u8 type) switch (objectid) { case BTRFS_ROOT_TREE_OBJECTID: + /* + * BTRFS_ROOT_TREE_OBJECTID and BTRFS_DEV_ITEMS_OBJECTID are + * defined with the same value 1, we need to distinguish them + * by the type. + */ if (type == BTRFS_DEV_ITEM_KEY) fprintf(stream, "DEV_ITEMS"); else