diff options
Diffstat (limited to 'include/linux/blkdev.h')
| -rw-r--r-- | include/linux/blkdev.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 7d423721b327..ca5fdc1b7745 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
| @@ -401,6 +401,7 @@ struct blk_zone_report_hdr { | |||
| 401 | u8 padding[60]; | 401 | u8 padding[60]; |
| 402 | }; | 402 | }; |
| 403 | 403 | ||
| 404 | extern unsigned int blkdev_nr_zones(struct block_device *bdev); | ||
| 404 | extern int blkdev_report_zones(struct block_device *bdev, | 405 | extern int blkdev_report_zones(struct block_device *bdev, |
| 405 | sector_t sector, struct blk_zone *zones, | 406 | sector_t sector, struct blk_zone *zones, |
| 406 | unsigned int *nr_zones, gfp_t gfp_mask); | 407 | unsigned int *nr_zones, gfp_t gfp_mask); |
| @@ -414,6 +415,10 @@ extern int blkdev_reset_zones_ioctl(struct block_device *bdev, fmode_t mode, | |||
| 414 | 415 | ||
| 415 | #else /* CONFIG_BLK_DEV_ZONED */ | 416 | #else /* CONFIG_BLK_DEV_ZONED */ |
| 416 | 417 | ||
| 418 | static inline unsigned int blkdev_nr_zones(struct block_device *bdev) | ||
| 419 | { | ||
| 420 | return 0; | ||
| 421 | } | ||
| 417 | static inline int blkdev_report_zones_ioctl(struct block_device *bdev, | 422 | static inline int blkdev_report_zones_ioctl(struct block_device *bdev, |
| 418 | fmode_t mode, unsigned int cmd, | 423 | fmode_t mode, unsigned int cmd, |
| 419 | unsigned long arg) | 424 | unsigned long arg) |
