Commit fd1c1de0 authored by FUJITA Tomonori's avatar FUJITA Tomonori Committed by Jens Axboe

sg: remove b_malloc_len in sg_scatter_hold struct

It's not used for anything useful after the block layer conversion.
Signed-off-by: default avatarFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent 7e56cb0f
...@@ -116,7 +116,6 @@ typedef struct sg_scatter_hold { /* holding area for scsi scatter gather info */ ...@@ -116,7 +116,6 @@ typedef struct sg_scatter_hold { /* holding area for scsi scatter gather info */
unsigned short k_use_sg; /* Count of kernel scatter-gather pieces */ unsigned short k_use_sg; /* Count of kernel scatter-gather pieces */
unsigned sglist_len; /* size of malloc'd scatter-gather list ++ */ unsigned sglist_len; /* size of malloc'd scatter-gather list ++ */
unsigned bufflen; /* Size of (aggregate) data buffer */ unsigned bufflen; /* Size of (aggregate) data buffer */
unsigned b_malloc_len; /* actual len malloc'ed in buffer */
struct page **pages; struct page **pages;
int page_order; int page_order;
char dio_in_use; /* 0->indirect IO (or mmap), 1->dio */ char dio_in_use; /* 0->indirect IO (or mmap), 1->dio */
...@@ -1986,7 +1985,6 @@ sg_link_reserve(Sg_fd * sfp, Sg_request * srp, int size) ...@@ -1986,7 +1985,6 @@ sg_link_reserve(Sg_fd * sfp, Sg_request * srp, int size)
req_schp->pages = rsv_schp->pages; req_schp->pages = rsv_schp->pages;
req_schp->bufflen = size; req_schp->bufflen = size;
req_schp->b_malloc_len = rsv_schp->b_malloc_len;
req_schp->page_order = rsv_schp->page_order; req_schp->page_order = rsv_schp->page_order;
break; break;
} else } else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment