summaryrefslogtreecommitdiff
path: root/block/blk-merge.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-02-08 14:46:47 +0100
committerJens Axboe <axboe@fb.com>2017-02-08 13:43:04 -0700
commit6cf7677f1a94546e472658290b3b8bdbb16cc045 (patch)
treeeb86076357ae5e6546ff16ada7e3cfcf63c06b91 /block/blk-merge.c
parent80c6b15732f0d8830032149cbcbc8d67e074b5e8 (diff)
downloadlwn-6cf7677f1a94546e472658290b3b8bdbb16cc045.tar.gz
lwn-6cf7677f1a94546e472658290b3b8bdbb16cc045.zip
block: move req_set_nomerge to blk.h
This makes it available outside of blk-merge.c, and inlining such a trivial helper seems pretty useful to start with. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-merge.c')
-rw-r--r--block/blk-merge.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/block/blk-merge.c b/block/blk-merge.c
index a373416dbc9a..c956d9e7aafd 100644
--- a/block/blk-merge.c
+++ b/block/blk-merge.c
@@ -482,13 +482,6 @@ int blk_rq_map_sg(struct request_queue *q, struct request *rq,
}
EXPORT_SYMBOL(blk_rq_map_sg);
-static void req_set_nomerge(struct request_queue *q, struct request *req)
-{
- req->cmd_flags |= REQ_NOMERGE;
- if (req == q->last_merge)
- q->last_merge = NULL;
-}
-
static inline int ll_new_hw_segment(struct request_queue *q,
struct request *req,
struct bio *bio)