mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
block: move dma_pad handling from blk_rq_map_sg into the callers
There are only two callers of blk_rq_map_sg/__blk_rq_map_sg that set the dma_pad value in the queue. Move the handling into those callers instead of burdening the common code, and move the ->extra_len field from struct request to struct scsi_cmnd. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
cc97923a5b
commit
bdf8710d69
8 changed files with 16 additions and 16 deletions
|
@ -224,8 +224,6 @@ struct request {
|
|||
unsigned short write_hint;
|
||||
unsigned short ioprio;
|
||||
|
||||
unsigned int extra_len; /* length of alignment and padding */
|
||||
|
||||
enum mq_rq_state state;
|
||||
refcount_t ref;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue