summaryrefslogtreecommitdiffstats
path: root/include/linux/blktrace_api.h
diff options
context:
space:
mode:
authorChen Gang <gang.chen@asianux.com>2013-11-03 22:23:39 +0800
committerJens Axboe <axboe@kernel.dk>2013-11-08 09:04:30 -0700
commitf8c5e94486671ffcac696886c246baa6ba89b5cf (patch)
tree9a4cf461b240740a0670cc364aec7851b3907ae1 /include/linux/blktrace_api.h
parent6678d83f18386eb103f8345024e52c5abe61725c (diff)
downloadop-kernel-dev-f8c5e94486671ffcac696886c246baa6ba89b5cf.zip
op-kernel-dev-f8c5e94486671ffcac696886c246baa6ba89b5cf.tar.gz
kernel: trace: blktrace: remove redundent memcpy() in compat_blk_trace_setup()
do_blk_trace_setup() will fully initialize 'buts.name', so can remove the related memcpy(). And also use BLKTRACE_BDEV_SIZE and ARRAY_SIZE instead of hard code number '32'. Signed-off-by: Chen Gang <gang.chen@asianux.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/blktrace_api.h')
-rw-r--r--include/linux/blktrace_api.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/blktrace_api.h b/include/linux/blktrace_api.h
index a12f6ed..afc1343 100644
--- a/include/linux/blktrace_api.h
+++ b/include/linux/blktrace_api.h
@@ -89,7 +89,7 @@ static inline int blk_trace_init_sysfs(struct device *dev)
#ifdef CONFIG_COMPAT
struct compat_blk_user_trace_setup {
- char name[32];
+ char name[BLKTRACE_BDEV_SIZE];
u16 act_mask;
u32 buf_size;
u32 buf_nr;
OpenPOWER on IntegriCloud