History

block: remove struct request buffer member

This was used in the olden days, back when onions were proper yellow. Basically it mapped to the current buffer to be transferred. With highmem being added more than a decade ago, most drivers map pages out of a bio, and rq->buffer isn't pointing at anything valid. Convert old style drivers to just use bio_data(). For the discard payload use case, just reference the page in the bio.

Jens Axboe committed 12 years ago

Commit b4f42e21 parent f89e0dd23 files · +55 −75Browse files

Showing the changes to include/linux/blkdev.h (1 of 23 files). Show all

Unified · Split

include/linux/blkdev.h+0−1
@@ -178,7 +178,6 @@ struct request { · 177 unmodified lines
178 unsigned short ioprio;178 unsigned short ioprio;
179 179
180 void *special; /* opaque pointer available for LLD use */180 void *special; /* opaque pointer available for LLD use */
181 char *buffer; /* kaddr of the current segment if available */
182 181
183 int tag;182 int tag;
184 int errors;183 int errors;