2018-07-13 14:08:29

by Vladimir Zapolskiy

[permalink] [raw]
Subject: [PATCH] block: remove blkdev_entry_to_request() macro

Remove blkdev_entry_to_request() macro, which remained unused through
the observable history, also note that it repeats list_entry_rq() macro
verbatim.

Signed-off-by: Vladimir Zapolskiy <[email protected]>
---
include/linux/blkdev.h | 2 --
1 file changed, 2 deletions(-)

diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 79226ca..eb101fd 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -1437,8 +1437,6 @@ enum blk_default_limits {
BLK_SEG_BOUNDARY_MASK = 0xFFFFFFFFUL,
};

-#define blkdev_entry_to_request(entry) list_entry((entry), struct request, queuelist)
-
static inline unsigned long queue_segment_boundary(struct request_queue *q)
{
return q->limits.seg_boundary_mask;
--
2.10.2



2018-07-13 14:13:42

by Jens Axboe

[permalink] [raw]
Subject: Re: [PATCH] block: remove blkdev_entry_to_request() macro

On 7/13/18 8:07 AM, Vladimir Zapolskiy wrote:
> Remove blkdev_entry_to_request() macro, which remained unused through
> the observable history, also note that it repeats list_entry_rq() macro
> verbatim.

Applied, thanks.

--
Jens Axboe