aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorDamien Le Moal <[email protected]>2019-11-11 11:39:24 +0900
committerJens Axboe <[email protected]>2019-11-12 19:11:56 -0700
commitceeb373aa6b9eb75ed3278d4b3ff2318c304e70c (patch)
tree30e11bd54ea84778943137d53c5179d85a3736ef /lib/test_overflow.c
parentc98c3d09fca41323765af0dc7926b150cf29ebff (diff)
block: Simplify report zones execution
All kernel users of blkdev_report_zones() as well as applications use through ioctl(BLKZONEREPORT) expect to potentially get less zone descriptors than requested. As such, the use of the internal report zones command execution loop implemented by blk_report_zones() is not necessary and can even be harmful to performance by causing the execution of inefficient small zones report command to service the reminder of a requested zone array. This patch removes blk_report_zones(), simplifying the code. Also remove a now incorrect comment in dm_blk_report_zones(). Signed-off-by: Damien Le Moal <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Javier Gonzalez <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions