[dm-devel] [PATCH v2 2/4] block: add private field to struct keyslot_manager

2020-10-16 Thread Satya Tangirala
Add a (void *) pointer to struct keyslot_manager that the owner of the struct can use for any purpose it wants. Right now, the struct keyslot_manager is expected to be embedded directly into other structs (and the owner of the keyslot_manager would use container_of() to access any other data the o

Re: [dm-devel] [PATCH v2 2/4] block: add private field to struct keyslot_manager

2020-10-16 Thread Christoph Hellwig
On Thu, Oct 15, 2020 at 09:46:30PM +, Satya Tangirala wrote: > Add a (void *) pointer to struct keyslot_manager that the owner of the > struct can use for any purpose it wants. > > Right now, the struct keyslot_manager is expected to be embedded directly > into other structs (and the owner of

Re: [dm-devel] [PATCH v2 2/4] block: add private field to struct keyslot_manager

2020-10-16 Thread Satya Tangirala
On Fri, Oct 16, 2020 at 08:19:41AM +0100, Christoph Hellwig wrote: > On Thu, Oct 15, 2020 at 09:46:30PM +, Satya Tangirala wrote: > > Add a (void *) pointer to struct keyslot_manager that the owner of the > > struct can use for any purpose it wants. > > > > Right now, the struct keyslot_manage