diff options
author | Keith Busch <keith.busch@intel.com> | 2015-12-03 09:32:21 -0700 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-12-03 09:32:21 -0700 |
commit | 06c1e3902aa74b7432a7e82bb4a5aca233a42839 (patch) | |
tree | 92372a5b1038eaa0ccbea92bf5f8625734ffd98f /fs/btrfs/free-space-cache.c | |
parent | 9a0be7abb62ff2a7dc3360ab45c31f29b3faf642 (diff) |
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>
Diffstat (limited to 'fs/btrfs/free-space-cache.c')
0 files changed, 0 insertions, 0 deletions