summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm.h
diff options
context:
space:
mode:
authorCheng Renquan2009-04-02 20:55:28 +0200
committerAlasdair G Kergon2009-04-02 20:55:28 +0200
commit45194e4f89fbdd97a2b7d2698c05f0b00c19e820 (patch)
tree70d35747228b84c1d7b7d76c5e18f72b16f412a3 /drivers/md/dm.h
parentdm table: fix upgrade mode race (diff)
downloadkernel-qcow2-linux-45194e4f89fbdd97a2b7d2698c05f0b00c19e820.tar.gz
kernel-qcow2-linux-45194e4f89fbdd97a2b7d2698c05f0b00c19e820.tar.xz
kernel-qcow2-linux-45194e4f89fbdd97a2b7d2698c05f0b00c19e820.zip
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 20194e000c5a..b48397c0abbd 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);