Skip to contentSkip to conversation

block: Move tag field position in struct request

PATCH Superseded Minwoo Im 3 participants 4 messages Apr 28, 2019 – May 13, 2019 Block layer

lore
Share & tools
lore

Minwoo Im

author
#0 lore raw

PATCH 1/1 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.

---
 include/linux/blkdev.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/blkdev.h +1 -1
index 317ab30d2904..639ca948d644 100644
@@ -137,11 +137,11 @@ struct request {
 	unsigned int cmd_flags;		/* op and common flags */
 	req_flags_t rq_flags;
 
+	int tag;
 	int internal_tag;
 
 	/* the following two fields are internal, NEVER access directly */
 	unsigned int __data_len;	/* total data len */
-	int tag;
 	sector_t __sector;		/* sector cursor */
 
 	struct bio *bio;
Signature · 1 line
2.17.1
Reviewed-by on v1 1/1
#2 lore raw
In reply to Minwoo Im

If Jens is okay with this change then :-

Quoted 28 lines · Minwoo Im

__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.

---
  include/linux/blkdev.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/blkdev.h +1 -1
index 317ab30d2904..639ca948d644 100644
@@ -137,11 +137,11 @@ struct request {
  	unsigned int cmd_flags;		/* op and common flags */
  	req_flags_t rq_flags;
 
+	int tag;
  	int internal_tag;
 
  	/* the following two fields are internal, NEVER access directly */
  	unsigned int __data_len;	/* total data len */
-	int tag;
  	sector_t __sector;		/* sector cursor */
 
  	struct bio *bio;
author
#3 lore raw
In reply to Minwoo Im
Quoted 6 lines · Minwoo Im

__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.

Ping here :)