aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/bio.h
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2008-08-15 04:20:02 -0400
committerJens Axboe <jens.axboe@oracle.com>2008-10-09 02:56:03 -0400
commit5df97b91b5d7ed426034fcc84cb6e7cf682b8838 (patch)
tree727b9fb778f72d2b1ff44c007fb5209bacf67f4a /include/linux/bio.h
parentb8b3e16cfe6435d961f6aaebcfd52a1ff2a988c5 (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/linux/bio.h')
-rw-r--r--include/linux/bio.h16
1 files changed, 1 insertions, 15 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 *);
324extern void bio_endio(struct bio *, int); 311extern void bio_endio(struct bio *, int);
325struct request_queue; 312struct request_queue;
326extern int bio_phys_segments(struct request_queue *, struct bio *); 313extern int bio_phys_segments(struct request_queue *, struct bio *);
327extern int bio_hw_segments(struct request_queue *, struct bio *);
328 314
329extern void __bio_clone(struct bio *, struct bio *); 315extern void __bio_clone(struct bio *, struct bio *);
330extern struct bio *bio_clone(struct bio *, gfp_t); 316extern struct bio *bio_clone(struct bio *, gfp_t);