aboutsummaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2008-01-11 07:37:01 -0500
committerJens Axboe <jens.axboe@oracle.com>2008-01-11 07:37:01 -0500
commit11a57153e3377ffdf8cfca2eda9a99063f66b957 (patch)
treeae9090abda695fda0885b189aa234727f2c6e2b4 /block
parent2997c8c4a0b179e8b834a7f30ba4323f2c60ccf4 (diff)
blktrace: kill the unneeded initcall
It just inits the mutex, we can do that with DEFINE_MUTEX() instead. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'block')
-rw-r--r--block/blktrace.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/block/blktrace.c b/block/blktrace.c
index 7471621d4ded..9b4da4ae3c7d 100644
--- a/block/blktrace.c
+++ b/block/blktrace.c
@@ -178,7 +178,7 @@ void __blk_add_trace(struct blk_trace *bt, sector_t sector, int bytes,
178EXPORT_SYMBOL_GPL(__blk_add_trace); 178EXPORT_SYMBOL_GPL(__blk_add_trace);
179 179
180static struct dentry *blk_tree_root; 180static struct dentry *blk_tree_root;
181static struct mutex blk_tree_mutex; 181static DEFINE_MUTEX(blk_tree_mutex);
182static unsigned int root_users; 182static unsigned int root_users;
183 183
184static inline void blk_remove_root(void) 184static inline void blk_remove_root(void)
@@ -504,13 +504,3 @@ void blk_trace_shutdown(struct request_queue *q)
504 blk_trace_remove(q); 504 blk_trace_remove(q);
505 } 505 }
506} 506}
507
508static __init int blk_trace_init(void)
509{
510 mutex_init(&blk_tree_mutex);
511
512 return 0;
513}
514
515module_init(blk_trace_init);
516