History

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).

Damien Le Moal committed 7 years ago

Commit bd976e51 parent b4c587512 files · +46 −44Browse files

Showing the changes to include/linux/blkdev.h (1 of 12 files). Show all

Unified · Split

include/linux/blkdev.h+2−3
@@ -347,7 +347,7 @@ struct queue_limits { · 346 unmodified lines
347347 extern unsigned int blkdev_nr_zones(struct block_device *bdev);
348348 extern int blkdev_report_zones(struct block_device *bdev,
349349 sector_t sector, struct blk_zone *zones,
350− unsigned int *nr_zones, gfp_t gfp_mask);
350+ unsigned int *nr_zones);
351351 extern int blkdev_reset_zones(struct block_device *bdev, sector_t sectors,
352352 sector_t nr_sectors, gfp_t gfp_mask);
353353 extern int blk_revalidate_disk_zones(struct gendisk *disk);
@@ -1673,8 +1673,7 @@ struct block_device_operations { · 1319 unmodified lines
16731673 /* this callback is with swap_lock and sometimes page table lock held */
16741674 void (*swap_slot_free_notify) (struct block_device *, unsigned long);
16751675 int (*report_zones)(struct gendisk *, sector_t sector,
1676− struct blk_zone *zones, unsigned int *nr_zones,
1677− gfp_t gfp_mask);
1676+ struct blk_zone *zones, unsigned int *nr_zones);
16781677 struct module *owner;
16791678 const struct pr_ops *pr_ops;
16801679 };

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t