|
@@ -401,6 +401,7 @@ struct blk_zone_report_hdr {
|
|
u8 padding[60];
|
|
u8 padding[60];
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+extern unsigned int blkdev_nr_zones(struct block_device *bdev);
|
|
extern int blkdev_report_zones(struct block_device *bdev,
|
|
extern int blkdev_report_zones(struct block_device *bdev,
|
|
sector_t sector, struct blk_zone *zones,
|
|
sector_t sector, struct blk_zone *zones,
|
|
unsigned int *nr_zones, gfp_t gfp_mask);
|
|
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,
|
|
|
|
|
|
#else /* CONFIG_BLK_DEV_ZONED */
|
|
#else /* CONFIG_BLK_DEV_ZONED */
|
|
|
|
|
|
|
|
+static inline unsigned int blkdev_nr_zones(struct block_device *bdev)
|
|
|
|
+{
|
|
|
|
+ return 0;
|
|
|
|
+}
|
|
static inline int blkdev_report_zones_ioctl(struct block_device *bdev,
|
|
static inline int blkdev_report_zones_ioctl(struct block_device *bdev,
|
|
fmode_t mode, unsigned int cmd,
|
|
fmode_t mode, unsigned int cmd,
|
|
unsigned long arg)
|
|
unsigned long arg)
|