Searched refs:bdev_nr_zones (Results 1 – 8 of 8) sorted by relevance
/linux-6.6.21/fs/zonefs/ |
D | super.c | 697 ino_t ino = bdev_nr_zones(sb->s_bdev) + ztype + 1; in zonefs_get_zgroup_inode() 772 ino_t base_ino = bdev_nr_zones(sb->s_bdev) + 1; in zonefs_readdir_root() 924 zd->zones = kvcalloc(bdev_nr_zones(bdev), sizeof(struct blk_zone), in zonefs_get_zone_info() 937 if (ret != bdev_nr_zones(bdev)) { in zonefs_get_zone_info() 939 ret, bdev_nr_zones(bdev)); in zonefs_get_zone_info() 979 end = zd->zones + bdev_nr_zones(sb->s_bdev); in zonefs_init_zgroup() 1309 zonefs_info(sb, "Mounting %u zones", bdev_nr_zones(sb->s_bdev)); in zonefs_fill_super() 1330 inode->i_ino = bdev_nr_zones(sb->s_bdev); in zonefs_fill_super()
|
/linux-6.6.21/drivers/nvme/target/ |
D | zns.c | 63 ret = blkdev_report_zones(ns->bdev, 0, bdev_nr_zones(ns->bdev), in nvmet_bdev_zns_enable() 259 return bdev_nr_zones(req->ns->bdev) - bdev_zone_no(req->ns->bdev, sect); in nvmet_req_nr_zones_from_slba() 403 unsigned int nr_zones = bdev_nr_zones(bdev); in nvmet_bdev_zone_mgmt_emulate_all()
|
/linux-6.6.21/block/ |
D | blk-zoned.c | 108 unsigned int bdev_nr_zones(struct block_device *bdev) in bdev_nr_zones() function 117 EXPORT_SYMBOL_GPL(bdev_nr_zones);
|
D | ioctl.c | 524 return put_uint(argp, bdev_nr_zones(bdev)); in blkdev_common_ioctl()
|
/linux-6.6.21/drivers/md/ |
D | dm-zoned-target.c | 795 zoned_dev->nr_zones = bdev_nr_zones(bdev); in dmz_fixup_devices() 806 zoned_dev->nr_zones = bdev_nr_zones(bdev); in dmz_fixup_devices()
|
D | dm-zone.c | 298 md->disk->nr_zones = bdev_nr_zones(md->disk->part0); in dm_set_zones_restrictions()
|
/linux-6.6.21/include/linux/ |
D | blkdev.h | 338 unsigned int bdev_nr_zones(struct block_device *bdev); 345 static inline unsigned int bdev_nr_zones(struct block_device *bdev) in bdev_nr_zones() function
|
/linux-6.6.21/drivers/block/null_blk/ |
D | zoned.c | 166 nullb->disk->nr_zones = bdev_nr_zones(nullb->disk->part0); in null_register_zoned_dev()
|