]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/blktrace_api.h
blktrace: use BLKTRACE_BDEV_SIZE as the name size for setup structure
[linux-2.6-omap-h63xx.git] / include / linux / blktrace_api.h
index a2a7d0ca27587d007baef289589566e374fb72ec..3a31eb506164a814a2b9599d11d709f9915ed1cc 100644 (file)
@@ -122,15 +122,13 @@ enum {
        Blktrace_stopped,
 };
 
+#define BLKTRACE_BDEV_SIZE     32
+
 /*
  * User setup structure passed with BLKTRACESTART
  */
 struct blk_user_trace_setup {
-#ifdef __KERNEL__
-       char name[BDEVNAME_SIZE];       /* output */
-#else
-       char name[32];                  /* output */
-#endif
+       char name[BLKTRACE_BDEV_SIZE];  /* output */
        __u16 act_mask;                 /* input */
        __u32 buf_size;                 /* input */
        __u32 buf_nr;                   /* input */