block: introduce blk_rq_is_passthrough
authorChristoph Hellwig <hch@lst.de>
Tue, 31 Jan 2017 15:57:29 +0000 (16:57 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Nov 2019 08:53:14 +0000 (09:53 +0100)
commitf3216243df6758ee8c80f63b95b9be424abb0ce2
treef098b9ad0382d38eaecbd6d523e075defd9b0865
parentedb9044165918050c4429e5450f0ef44c95b3726
block: introduce blk_rq_is_passthrough

commit 57292b58ddb58689e8c3b4c6eadbef10d9ca44dd upstream.

This can be used to check for fs vs non-fs requests and basically
removes all knowledge of BLOCK_PC specific from the block layer,
as well as preparing for removing the cmd_type field in struct request.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
[only take the blkdev.h changes as we only want the function for backported
patches - gregkh]
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/blkdev.h