dm target: remove struct tt_internal
authorCheng Renquan <crquan@gmail.com>
Thu, 2 Apr 2009 18:55:28 +0000 (19:55 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Thu, 2 Apr 2009 18:55:28 +0000 (19:55 +0100)
commit45194e4f89fbdd97a2b7d2698c05f0b00c19e820
tree70d35747228b84c1d7b7d76c5e18f72b16f412a3
parent570b9d968bf9b16974252ef7cbce73fa6dac34f3
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>
drivers/md/dm-target.c
drivers/md/dm.h
include/linux/device-mapper.h