X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=instrumentation%2Fevents%2Flttng-module%2Fbtrfs.h;h=56cfce5db5c2058d198552fd99b4e2051568694e;hb=4dbf0908feb928be0092c86cd6f20539c39c6c9d;hp=c01a6e0b9a357f01c5ddd4d4e2c6530d83e2675d;hpb=162774b4f9c238e47e94f2df69d43232e6bfd360;p=lttng-modules.git diff --git a/instrumentation/events/lttng-module/btrfs.h b/instrumentation/events/lttng-module/btrfs.h index c01a6e0b..56cfce5d 100644 --- a/instrumentation/events/lttng-module/btrfs.h +++ b/instrumentation/events/lttng-module/btrfs.h @@ -67,9 +67,16 @@ struct extent_state; { BTRFS_DATA_RELOC_TREE_OBJECTID, "DATA_RELOC_TREE" }) #endif +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)) +#define show_root_type(obj) \ + obj, ((obj >= BTRFS_DATA_RELOC_TREE_OBJECTID) || \ + (obj >= BTRFS_ROOT_TREE_OBJECTID && \ + obj <= BTRFS_CSUM_TREE_OBJECTID)) ? __show_root_type(obj) : "-" +#else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)) */ #define show_root_type(obj) \ obj, ((obj >= BTRFS_DATA_RELOC_TREE_OBJECTID) || \ (obj <= BTRFS_CSUM_TREE_OBJECTID )) ? __show_root_type(obj) : "-" +#endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)) */ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0))