diff options
author | Cheng Renquan <crquan@gmail.com> | 2009-04-02 14:55:28 -0400 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2009-04-02 14:55:28 -0400 |
commit | 45194e4f89fbdd97a2b7d2698c05f0b00c19e820 (patch) | |
tree | 70d35747228b84c1d7b7d76c5e18f72b16f412a3 /include/linux/device-mapper.h | |
parent | 570b9d968bf9b16974252ef7cbce73fa6dac34f3 (diff) |
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 'include/linux/device-mapper.h')
-rw-r--r-- | include/linux/device-mapper.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/device-mapper.h b/include/linux/device-mapper.h index 8209e08969f9..66ec05a57955 100644 --- a/include/linux/device-mapper.h +++ b/include/linux/device-mapper.h | |||
@@ -139,6 +139,9 @@ struct target_type { | |||
139 | dm_ioctl_fn ioctl; | 139 | dm_ioctl_fn ioctl; |
140 | dm_merge_fn merge; | 140 | dm_merge_fn merge; |
141 | dm_busy_fn busy; | 141 | dm_busy_fn busy; |
142 | |||
143 | /* For internal device-mapper use. */ | ||
144 | struct list_head list; | ||
142 | }; | 145 | }; |
143 | 146 | ||
144 | struct io_restrictions { | 147 | struct io_restrictions { |