]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitacb6172ad15b42950115742e967a5967649b82cb
tree00d0e86f8fad328d1e788c060c8b9687bc5f898a
parenta08504eb3cd55b147bf85207bb254ccb9ebf815d
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