History

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.

Minwoo Im committed 7 years ago

Commit 2f578aa1 parent 2af47c11 file · +1 −1Browse files

Unified · Split

include/linux/blkdev.h+1−1
@@ -137,11 +137,11 @@ struct request { · 136 unmodified lines
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;