block: Kill gfp_t argument of blkdev_report_zones()
authorDamien Le Moal <damien.lemoal@wdc.com>
Mon, 1 Jul 2019 05:09:16 +0000 (14:09 +0900)
committerJens Axboe <axboe@kernel.dk>
Fri, 12 Jul 2019 02:04:37 +0000 (20:04 -0600)
commitbd976e52725965ddcceb9abecbcc7ca46863665c
tree920d0b976f212f1a4af42c67f271ff8c18406589
parentb4c5875d36178e8df409bdce232f270cac89fafe
block: Kill gfp_t argument of blkdev_report_zones()

Only GFP_KERNEL and GFP_NOIO are used with blkdev_report_zones(). In
preparation of using vmalloc() for large report buffer and zone array
allocations used by this function, remove its "gfp_t gfp_mask" argument
and rely on the caller context to use memalloc_noio_save/restore() where
necessary (block layer zone revalidation and dm-zoned I/O error path).

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 files changed:
block/blk-zoned.c
drivers/block/null_blk.h
drivers/block/null_blk_zoned.c
drivers/md/dm-flakey.c
drivers/md/dm-linear.c
drivers/md/dm-zoned-metadata.c
drivers/md/dm.c
drivers/scsi/sd.h
drivers/scsi/sd_zbc.c
fs/f2fs/super.c
include/linux/blkdev.h
include/linux/device-mapper.h