diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2008-08-15 04:20:02 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-10-09 02:56:03 -0400 |
commit | 5df97b91b5d7ed426034fcc84cb6e7cf682b8838 (patch) | |
tree | 727b9fb778f72d2b1ff44c007fb5209bacf67f4a /include | |
parent | b8b3e16cfe6435d961f6aaebcfd52a1ff2a988c5 (diff) |
drop vmerge accounting
Remove hw_segments field from struct bio and struct request. Without virtual
merge accounting they have no purpose.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/bio.h | 16 | ||||
-rw-r--r-- | include/linux/blkdev.h | 7 |
2 files changed, 1 insertions, 22 deletions
diff --git a/include/linux/bio.h b/include/linux/bio.h index 894d16ce0020..dfc3556d311c 100644 --- a/include/linux/bio.h +++ b/include/linux/bio.h | |||
@@ -77,21 +77,8 @@ struct bio { | |||
77 | */ | 77 | */ |
78 | unsigned short bi_phys_segments; | 78 | unsigned short bi_phys_segments; |
79 | 79 | ||
80 | /* Number of segments after physical and DMA remapping | ||
81 | * hardware coalescing is performed. | ||
82 | */ | ||
83 | unsigned short bi_hw_segments; | ||
84 | |||
85 | unsigned int bi_size; /* residual I/O count */ | 80 | unsigned int bi_size; /* residual I/O count */ |
86 | 81 | ||
87 | /* | ||
88 | * To keep track of the max hw size, we account for the | ||
89 | * sizes of the first and last virtually mergeable segments | ||
90 | * in this bio | ||
91 | */ | ||
92 | unsigned int bi_hw_front_size; | ||
93 | unsigned int bi_hw_back_size; | ||
94 | |||
95 | unsigned int bi_max_vecs; /* max bvl_vecs we can hold */ | 82 | unsigned int bi_max_vecs; /* max bvl_vecs we can hold */ |
96 | 83 | ||
97 | struct bio_vec *bi_io_vec; /* the actual vec list */ | 84 | struct bio_vec *bi_io_vec; /* the actual vec list */ |
@@ -113,7 +100,7 @@ struct bio { | |||
113 | #define BIO_UPTODATE 0 /* ok after I/O completion */ | 100 | #define BIO_UPTODATE 0 /* ok after I/O completion */ |
114 | #define BIO_RW_BLOCK 1 /* RW_AHEAD set, and read/write would block */ | 101 | #define BIO_RW_BLOCK 1 /* RW_AHEAD set, and read/write would block */ |
115 | #define BIO_EOF 2 /* out-out-bounds error */ | 102 | #define BIO_EOF 2 /* out-out-bounds error */ |
116 | #define BIO_SEG_VALID 3 /* nr_hw_seg valid */ | 103 | #define BIO_SEG_VALID 3 /* bi_phys_segments valid */ |
117 | #define BIO_CLONED 4 /* doesn't own data */ | 104 | #define BIO_CLONED 4 /* doesn't own data */ |
118 | #define BIO_BOUNCED 5 /* bio is a bounce bio */ | 105 | #define BIO_BOUNCED 5 /* bio is a bounce bio */ |
119 | #define BIO_USER_MAPPED 6 /* contains user pages */ | 106 | #define BIO_USER_MAPPED 6 /* contains user pages */ |
@@ -324,7 +311,6 @@ extern void bio_free(struct bio *, struct bio_set *); | |||
324 | extern void bio_endio(struct bio *, int); | 311 | extern void bio_endio(struct bio *, int); |
325 | struct request_queue; | 312 | struct request_queue; |
326 | extern int bio_phys_segments(struct request_queue *, struct bio *); | 313 | extern int bio_phys_segments(struct request_queue *, struct bio *); |
327 | extern int bio_hw_segments(struct request_queue *, struct bio *); | ||
328 | 314 | ||
329 | extern void __bio_clone(struct bio *, struct bio *); | 315 | extern void __bio_clone(struct bio *, struct bio *); |
330 | extern struct bio *bio_clone(struct bio *, gfp_t); | 316 | extern struct bio *bio_clone(struct bio *, gfp_t); |
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 490ce458b031..1adb03827bd3 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
@@ -189,13 +189,6 @@ struct request { | |||
189 | */ | 189 | */ |
190 | unsigned short nr_phys_segments; | 190 | unsigned short nr_phys_segments; |
191 | 191 | ||
192 | /* Number of scatter-gather addr+len pairs after | ||
193 | * physical and DMA remapping hardware coalescing is performed. | ||
194 | * This is the number of scatter-gather entries the driver | ||
195 | * will actually have to deal with after DMA mapping is done. | ||
196 | */ | ||
197 | unsigned short nr_hw_segments; | ||
198 | |||
199 | unsigned short ioprio; | 192 | unsigned short ioprio; |
200 | 193 | ||
201 | void *special; | 194 | void *special; |