Skip to content

Commit

Permalink
blktrace: kill the unneeded initcall
Browse files Browse the repository at this point in the history
It just inits the mutex, we can do that with DEFINE_MUTEX() instead.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
  • Loading branch information
Jens Axboe committed Jan 11, 2008
1 parent 2997c8c commit 11a5715
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions block/blktrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ void __blk_add_trace(struct blk_trace *bt, sector_t sector, int bytes,
EXPORT_SYMBOL_GPL(__blk_add_trace);

static struct dentry *blk_tree_root;
static struct mutex blk_tree_mutex;
static DEFINE_MUTEX(blk_tree_mutex);
static unsigned int root_users;

static inline void blk_remove_root(void)
Expand Down Expand Up @@ -504,13 +504,3 @@ void blk_trace_shutdown(struct request_queue *q)
blk_trace_remove(q);
}
}

static __init int blk_trace_init(void)
{
mutex_init(&blk_tree_mutex);

return 0;
}

module_init(blk_trace_init);

0 comments on commit 11a5715

Please sign in to comment.