summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm.h
diff options
context:
space:
mode:
authorCheng Renquan <crquan@gmail.com>2009-04-02 19:55:28 +0100
committerAlasdair G Kergon <agk@redhat.com>2009-04-02 19:55:28 +0100
commit45194e4f89fbdd97a2b7d2698c05f0b00c19e820 (patch)
tree70d35747228b84c1d7b7d76c5e18f72b16f412a3 /drivers/md/dm.h
parent570b9d968bf9b16974252ef7cbce73fa6dac34f3 (diff)
downloadop-kernel-dev-45194e4f89fbdd97a2b7d2698c05f0b00c19e820.zip
op-kernel-dev-45194e4f89fbdd97a2b7d2698c05f0b00c19e820.tar.gz
dm target: remove struct tt_internal
The tt_internal is really just a list_head to manage registered target_type in a double linked list, Here embed the list_head into target_type directly, 1. to avoid kmalloc/kfree; 2. then tt_internal is really unneeded; Cc: stable@kernel.org Signed-off-by: Cheng Renquan <crquan@gmail.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com> Reviewed-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm.h')
-rw-r--r--drivers/md/dm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm.h b/drivers/md/dm.h
index 20194e0..b48397c 100644
--- a/drivers/md/dm.h
+++ b/drivers/md/dm.h
@@ -60,7 +60,7 @@ int dm_table_barrier_ok(struct dm_table *t);
int dm_target_init(void);
void dm_target_exit(void);
struct target_type *dm_get_target_type(const char *name);
-void dm_put_target_type(struct target_type *t);
+void dm_put_target_type(struct target_type *tt);
int dm_target_iterate(void (*iter_func)(struct target_type *tt,
void *param), void *param);
OpenPOWER on IntegriCloud