dm crypt: store crypt_config instead of dm_target struct
authorAlasdair G Kergon <agk@redhat.com>
Fri, 27 Jul 2012 14:08:05 +0000 (15:08 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 27 Jul 2012 14:08:05 +0000 (15:08 +0100)
commit49a8a9204bb17296725058bbc7f31092d256be6e
treee63780cb17dad2ef375001833d73250c9adc07bb
parentfd2d231faf3ca25584d2320fdcd5a8b202342e46
dm crypt: store crypt_config instead of dm_target struct

Store the crypt_config struct pointer directly in struct dm_crypt_io
instead of the dm_target struct pointer.

Target information is never used - only target->private is referenced,
thus we can change it to point directly to struct crypt_config.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-crypt.c