nvme: factor out a add nvme_is_write helper
authorChristoph Hellwig <hch@lst.de>
Mon, 6 Jun 2016 21:20:49 +0000 (23:20 +0200)
committerJens Axboe <axboe@fb.com>
Sun, 12 Jun 2016 13:29:43 +0000 (07:29 -0600)
commit7a5abb4b48570c3552e33ff4c72ae1e8dac3ba15
tree00d0e86f8fad328d1e788c060c8b9687bc5f898a
parenta229dbf61e03b70d98f5ed46f476d6369870a6ab
nvme: factor out a add nvme_is_write helper

Centralize the check if a given NVMe command reads or writes data.

Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Jay Freyensee <james.p.freyensee@intel.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/core.c
include/linux/nvme.h