diff options
author | NeilBrown <neilb@suse.de> | 2011-10-11 01:48:23 -0400 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-10-11 01:48:23 -0400 |
commit | 2b8bf3451d1e3133ebc3998721d14013a6c27114 (patch) | |
tree | 6ad9afb9124d5eb865d513ec3f30259231075a8f /drivers/md/md.c | |
parent | fd01b88c75a718020ff77e7f560d33835e9b58de (diff) |
md: remove typedefs: mdk_thread_t -> struct md_thread
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r-- | drivers/md/md.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index f378b8a39eb2..1f661bbcaefe 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
@@ -6362,7 +6362,7 @@ static const struct block_device_operations md_fops = | |||
6362 | 6362 | ||
6363 | static int md_thread(void * arg) | 6363 | static int md_thread(void * arg) |
6364 | { | 6364 | { |
6365 | mdk_thread_t *thread = arg; | 6365 | struct md_thread *thread = arg; |
6366 | 6366 | ||
6367 | /* | 6367 | /* |
6368 | * md_thread is a 'system-thread', it's priority should be very | 6368 | * md_thread is a 'system-thread', it's priority should be very |
@@ -6401,7 +6401,7 @@ static int md_thread(void * arg) | |||
6401 | return 0; | 6401 | return 0; |
6402 | } | 6402 | } |
6403 | 6403 | ||
6404 | void md_wakeup_thread(mdk_thread_t *thread) | 6404 | void md_wakeup_thread(struct md_thread *thread) |
6405 | { | 6405 | { |
6406 | if (thread) { | 6406 | if (thread) { |
6407 | pr_debug("md: waking up MD thread %s.\n", thread->tsk->comm); | 6407 | pr_debug("md: waking up MD thread %s.\n", thread->tsk->comm); |
@@ -6410,12 +6410,12 @@ void md_wakeup_thread(mdk_thread_t *thread) | |||
6410 | } | 6410 | } |
6411 | } | 6411 | } |
6412 | 6412 | ||
6413 | mdk_thread_t *md_register_thread(void (*run) (struct mddev *), struct mddev *mddev, | 6413 | struct md_thread *md_register_thread(void (*run) (struct mddev *), struct mddev *mddev, |
6414 | const char *name) | 6414 | const char *name) |
6415 | { | 6415 | { |
6416 | mdk_thread_t *thread; | 6416 | struct md_thread *thread; |
6417 | 6417 | ||
6418 | thread = kzalloc(sizeof(mdk_thread_t), GFP_KERNEL); | 6418 | thread = kzalloc(sizeof(struct md_thread), GFP_KERNEL); |
6419 | if (!thread) | 6419 | if (!thread) |
6420 | return NULL; | 6420 | return NULL; |
6421 | 6421 | ||
@@ -6435,9 +6435,9 @@ mdk_thread_t *md_register_thread(void (*run) (struct mddev *), struct mddev *mdd | |||
6435 | return thread; | 6435 | return thread; |
6436 | } | 6436 | } |
6437 | 6437 | ||
6438 | void md_unregister_thread(mdk_thread_t **threadp) | 6438 | void md_unregister_thread(struct md_thread **threadp) |
6439 | { | 6439 | { |
6440 | mdk_thread_t *thread = *threadp; | 6440 | struct md_thread *thread = *threadp; |
6441 | if (!thread) | 6441 | if (!thread) |
6442 | return; | 6442 | return; |
6443 | pr_debug("interrupting MD-thread pid %d\n", task_pid_nr(thread->tsk)); | 6443 | pr_debug("interrupting MD-thread pid %d\n", task_pid_nr(thread->tsk)); |