aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/block/ioctl.c
diff options
context:
space:
mode:
authorDamien Le Moal <damien.lemoal@wdc.com>2018-10-12 19:08:44 +0900
committerJens Axboe <axboe@kernel.dk>2018-10-25 11:17:40 -0600
commit2e85fbaff3a71e46038ec736186c42ffa721c775 (patch)
tree09f8f2e909939e916a95e92ac59a8921758cac74 /block/ioctl.c
parentblock: Introduce blkdev_nr_zones() helper (diff)
downloadwireguard-linux-2e85fbaff3a71e46038ec736186c42ffa721c775.tar.xz
wireguard-linux-2e85fbaff3a71e46038ec736186c42ffa721c775.zip
block: Limit allocation of zone descriptors for report zones
There is no point in allocating more zone descriptors than the number of zones a block device has for doing a zone report. Avoid doing that in blkdev_report_zones_ioctl() by limiting the number of zone decriptors allocated internally to process the user request. Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/ioctl.c')
0 files changed, 0 insertions, 0 deletions