diff options
author | Liu Bo <bo.li.liu@oracle.com> | 2012-11-30 06:24:22 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2012-12-16 20:46:18 -0500 |
commit | fb57dc817c24d46b035320d871b7a3fcc778558d (patch) | |
tree | 0cc379d4bdf7b4d84f1890d5410d21421377ba2c /include/trace | |
parent | 960097622d48bf0ee8f6c0cf751a904066c4b45b (diff) |
Btrfs: parse parent 0 into correct value in tracepoint
Value 0 is not a tree id, so besides an upper limit, a lower limit is
necessary as well while parsing root types of tracepoint.
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'include/trace')
-rw-r--r-- | include/trace/events/btrfs.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/trace/events/btrfs.h b/include/trace/events/btrfs.h index 54fab041b22a..ea546a4e9609 100644 --- a/include/trace/events/btrfs.h +++ b/include/trace/events/btrfs.h | |||
@@ -45,7 +45,8 @@ struct extent_buffer; | |||
45 | 45 | ||
46 | #define show_root_type(obj) \ | 46 | #define show_root_type(obj) \ |
47 | obj, ((obj >= BTRFS_DATA_RELOC_TREE_OBJECTID) || \ | 47 | obj, ((obj >= BTRFS_DATA_RELOC_TREE_OBJECTID) || \ |
48 | (obj <= BTRFS_CSUM_TREE_OBJECTID )) ? __show_root_type(obj) : "-" | 48 | (obj >= BTRFS_ROOT_TREE_OBJECTID && \ |
49 | obj <= BTRFS_CSUM_TREE_OBJECTID)) ? __show_root_type(obj) : "-" | ||
49 | 50 | ||
50 | #define BTRFS_GROUP_FLAGS \ | 51 | #define BTRFS_GROUP_FLAGS \ |
51 | { BTRFS_BLOCK_GROUP_DATA, "DATA"}, \ | 52 | { BTRFS_BLOCK_GROUP_DATA, "DATA"}, \ |