block: add sg list size limits
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
25c0b538d2
commit
86091c6acb
2 changed files with 7 additions and 0 deletions
|
|
@ -30,6 +30,9 @@ struct block_device {
|
|||
struct block_device *part_of; /* if it is a partition */
|
||||
void *priv;
|
||||
|
||||
size_t sg_max_len;
|
||||
size_t sg_max_segments;
|
||||
|
||||
struct block_ops ops;
|
||||
struct disk disk;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue