Revision 9f25eccc block/stream.c
b/block/stream.c | ||
---|---|---|
236 | 236 |
if (value < 0) { |
237 | 237 |
return -EINVAL; |
238 | 238 |
} |
239 |
job->speed = value; |
|
240 | 239 |
ratelimit_set_speed(&s->limit, value / BDRV_SECTOR_SIZE); |
241 | 240 |
return 0; |
242 | 241 |
} |
Also available in: Unified diff