diff options
author | Damien Le Moal <damien.lemoal@wdc.com> | 2019-07-01 01:09:16 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-07-11 22:04:37 -0400 |
commit | bd976e52725965ddcceb9abecbcc7ca46863665c (patch) | |
tree | 920d0b976f212f1a4af42c67f271ff8c18406589 /drivers/md/dm-linear.c | |
parent | b4c5875d36178e8df409bdce232f270cac89fafe (diff) |
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>
Diffstat (limited to 'drivers/md/dm-linear.c')
-rw-r--r-- | drivers/md/dm-linear.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/md/dm-linear.c b/drivers/md/dm-linear.c index ad980a38fb1e..ecefe6703736 100644 --- a/drivers/md/dm-linear.c +++ b/drivers/md/dm-linear.c | |||
@@ -137,15 +137,14 @@ static int linear_prepare_ioctl(struct dm_target *ti, struct block_device **bdev | |||
137 | 137 | ||
138 | #ifdef CONFIG_BLK_DEV_ZONED | 138 | #ifdef CONFIG_BLK_DEV_ZONED |
139 | static int linear_report_zones(struct dm_target *ti, sector_t sector, | 139 | static int linear_report_zones(struct dm_target *ti, sector_t sector, |
140 | struct blk_zone *zones, unsigned int *nr_zones, | 140 | struct blk_zone *zones, unsigned int *nr_zones) |
141 | gfp_t gfp_mask) | ||
142 | { | 141 | { |
143 | struct linear_c *lc = (struct linear_c *) ti->private; | 142 | struct linear_c *lc = (struct linear_c *) ti->private; |
144 | int ret; | 143 | int ret; |
145 | 144 | ||
146 | /* Do report and remap it */ | 145 | /* Do report and remap it */ |
147 | ret = blkdev_report_zones(lc->dev->bdev, linear_map_sector(ti, sector), | 146 | ret = blkdev_report_zones(lc->dev->bdev, linear_map_sector(ti, sector), |
148 | zones, nr_zones, gfp_mask); | 147 | zones, nr_zones); |
149 | if (ret != 0) | 148 | if (ret != 0) |
150 | return ret; | 149 | return ret; |
151 | 150 | ||