aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/blkdev.h
diff options
context:
space:
mode:
authorMinwoo Im <minwoo.im.dev@gmail.com>2019-06-08 16:15:51 -0400
committerJens Axboe <axboe@kernel.dk>2019-06-20 05:17:05 -0400
commit2f578aaf51624aa6fcff041fc7dc5c2d4dfa447f (patch)
tree04639681df1867cd280dc874180cd07f8666c97a /include/linux/blkdev.h
parent2af47c10e80baf91cff56c44cec47402e05ac45c (diff)
block: move tag field position in struct request
__data_len and __sector are internal fields which should not be accessed directly in driver-level like the comment above it. But, tag field can be accessed by driver level directly so that we need to make the comment right by moving it to some other place. Cc: Jens Axboe <axboe@kernel.dk> Cc: linux-block@vger.kernel.org Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com> Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r--include/linux/blkdev.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 592669bcc536..90e6914bea0c 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -137,11 +137,11 @@ struct request {
137 unsigned int cmd_flags; /* op and common flags */ 137 unsigned int cmd_flags; /* op and common flags */
138 req_flags_t rq_flags; 138 req_flags_t rq_flags;
139 139
140 int tag;
140 int internal_tag; 141 int internal_tag;
141 142
142 /* the following two fields are internal, NEVER access directly */ 143 /* the following two fields are internal, NEVER access directly */
143 unsigned int __data_len; /* total data len */ 144 unsigned int __data_len; /* total data len */
144 int tag;
145 sector_t __sector; /* sector cursor */ 145 sector_t __sector; /* sector cursor */
146 146
147 struct bio *bio; 147 struct bio *bio;