-
- Downloads
block/sed-opal: allocate struct opal_dev dynamically
Insted of bloating the containing structure with it all the time this allocates struct opal_dev dynamically. Additionally this allows moving the definition of struct opal_dev into sed-opal.c. For this a new private data field is added to it that is passed to the send/receive callback. After that a lot of internals can be made private as well. Signed-off-by:Christoph Hellwig <hch@lst.de> Tested-by:
Scott Bauer <scott.bauer@intel.com> Reviewed-by:
Scott Bauer <scott.bauer@intel.com> Signed-off-by:
Jens Axboe <axboe@fb.com>
Showing
- block/opal_proto.h 23 additions, 0 deletionsblock/opal_proto.h
- block/sed-opal.c 91 additions, 10 deletionsblock/sed-opal.c
- drivers/nvme/host/core.c 4 additions, 5 deletionsdrivers/nvme/host/core.c
- drivers/nvme/host/nvme.h 3 additions, 11 deletionsdrivers/nvme/host/nvme.h
- drivers/nvme/host/pci.c 6 additions, 2 deletionsdrivers/nvme/host/pci.c
- include/linux/sed-opal.h 4 additions, 112 deletionsinclude/linux/sed-opal.h
Loading
Please register or sign in to comment