diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2008-10-01 10:16:25 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-10-09 02:56:20 -0400 |
commit | 0497b345e7d067109e0dd9bf9f4978a6847ee13b (patch) | |
tree | 8c181a200c9e883a9c85169dff887bfb9109ee5e /include/linux/blktrace_api.h | |
parent | ef9e3facdf1fe1228721a7c295a76d1b7a0e57ec (diff) |
blktrace: use BLKTRACE_BDEV_SIZE as the name size for setup structure
Define as 32, which is is what BDEVNAME_SIZE is/was as well. This keeps
the user interface the same and gets rid of the difference between
kernel and user api here.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'include/linux/blktrace_api.h')
-rw-r--r-- | include/linux/blktrace_api.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/include/linux/blktrace_api.h b/include/linux/blktrace_api.h index a2a7d0ca2758..3a31eb506164 100644 --- a/include/linux/blktrace_api.h +++ b/include/linux/blktrace_api.h | |||
@@ -122,15 +122,13 @@ enum { | |||
122 | Blktrace_stopped, | 122 | Blktrace_stopped, |
123 | }; | 123 | }; |
124 | 124 | ||
125 | #define BLKTRACE_BDEV_SIZE 32 | ||
126 | |||
125 | /* | 127 | /* |
126 | * User setup structure passed with BLKTRACESTART | 128 | * User setup structure passed with BLKTRACESTART |
127 | */ | 129 | */ |
128 | struct blk_user_trace_setup { | 130 | struct blk_user_trace_setup { |
129 | #ifdef __KERNEL__ | 131 | char name[BLKTRACE_BDEV_SIZE]; /* output */ |
130 | char name[BDEVNAME_SIZE]; /* output */ | ||
131 | #else | ||
132 | char name[32]; /* output */ | ||
133 | #endif | ||
134 | __u16 act_mask; /* input */ | 132 | __u16 act_mask; /* input */ |
135 | __u32 buf_size; /* input */ | 133 | __u32 buf_size; /* input */ |
136 | __u32 buf_nr; /* input */ | 134 | __u32 buf_nr; /* input */ |