Whamcloud - gitweb
LU-2640 osd: conditional enable transaction debug
authorFan Yong <yong.fan@whamcloud.com>
Wed, 13 Feb 2013 13:09:39 +0000 (21:09 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 18 Mar 2013 22:52:24 +0000 (18:52 -0400)
Current transaction debug mechanism will be disabled
when Lustre-2.4 released.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: I516a9026b2d887935c5714dc0b777d65d487dac7
Reviewed-on: http://review.whamcloud.com/5698
Tested-by: Hudson
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
lustre/osd-ldiskfs/osd_internal.h

index 26c41c3..31529f8 100644 (file)
@@ -318,7 +318,9 @@ enum {
        OSD_OT_MAX              = 11
 };
 
        OSD_OT_MAX              = 11
 };
 
-#define OSD_TRACK_DECLARES
+#if LUSTRE_VERSION_CODE < OBD_OCD_VERSION(2, 3, 90, 0)
+# define OSD_TRACK_DECLARES
+#endif
 
 struct osd_thandle {
         struct thandle          ot_super;
 
 struct osd_thandle {
         struct thandle          ot_super;