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>
Showing
- block/blk-zoned.c 19 additions, 12 deletionsblock/blk-zoned.c
- drivers/block/null_blk.h 1 addition, 2 deletionsdrivers/block/null_blk.h
- drivers/block/null_blk_zoned.c 1 addition, 2 deletionsdrivers/block/null_blk_zoned.c
- drivers/md/dm-flakey.c 2 additions, 3 deletionsdrivers/md/dm-flakey.c
- drivers/md/dm-linear.c 2 additions, 3 deletionsdrivers/md/dm-linear.c
- drivers/md/dm-zoned-metadata.c 12 additions, 4 deletionsdrivers/md/dm-zoned-metadata.c
- drivers/md/dm.c 2 additions, 4 deletionsdrivers/md/dm.c
- drivers/scsi/sd.h 1 addition, 2 deletionsdrivers/scsi/sd.h
- drivers/scsi/sd_zbc.c 2 additions, 4 deletionsdrivers/scsi/sd_zbc.c
- fs/f2fs/super.c 1 addition, 3 deletionsfs/f2fs/super.c
- include/linux/blkdev.h 2 additions, 3 deletionsinclude/linux/blkdev.h
- include/linux/device-mapper.h 1 addition, 2 deletionsinclude/linux/device-mapper.h
Loading
Please register or sign in to comment