Name

blk_stack_limits — adjust queue_limits for stacked devices

Synopsis

int blk_stack_limits (struct queue_limits * t,
 struct queue_limits * b,
 sector_t offset);
 

Arguments

t

the stacking driver limits (top)

b

the underlying queue limits (bottom)

offset

offset to beginning of data within component device

Description

Merges two queue_limit structs. Returns 0 if alignment didn't change. Returns -1 if adding the bottom device caused misalignment.