1
0
Fork 0
alistair23-linux/drivers/nvme/host
Keith Busch 06c1e3902a blk-integrity: empty implementation when disabled
This patch moves the blk_integrity_payload definition outside the
CONFIG_BLK_DEV_INTERITY dependency and provides empty function
implementations when the kernel configuration disables integrity
extensions. This simplifies drivers that make use of these to map user
data so they don't need to repeat the same configuration checks.

Signed-off-by: Keith Busch <keith.busch@intel.com>

Updated by Jens to pass an error pointer return from
bio_integrity_alloc(), otherwise if CONFIG_BLK_DEV_INTEGRITY isn't
set, we return a weird ENOMEM from __nvme_submit_user_cmd()
if a meta buffer is set.

Signed-off-by: Jens Axboe <axboe@fb.com>
2015-12-03 09:32:21 -07:00
..
Kconfig NVMe: Add explicit block config dependency 2015-10-12 11:43:22 -06:00
Makefile nvme: split command submission helpers out of pci.c 2015-12-01 10:59:38 -07:00
core.c blk-integrity: empty implementation when disabled 2015-12-03 09:32:21 -07:00
lightnvm.c blk-mq: add a flags parameter to blk_mq_alloc_request 2015-12-01 10:53:59 -07:00
nvme.h nvme: refactor set_queue_count 2015-12-01 10:59:40 -07:00
pci.c nvme: refactor set_queue_count 2015-12-01 10:59:40 -07:00
scsi.c nvme: move chardev and sysfs interface to common code 2015-12-01 10:59:40 -07:00