Home
last modified time | relevance | path

Searched refs:bdev_nr_zones (Results 1 – 8 of 8) sorted by relevance

/linux-6.6.21/fs/zonefs/
Dsuper.c697 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/
Dzns.c63 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/
Dblk-zoned.c108 unsigned int bdev_nr_zones(struct block_device *bdev) in bdev_nr_zones() function
117 EXPORT_SYMBOL_GPL(bdev_nr_zones);
Dioctl.c524 return put_uint(argp, bdev_nr_zones(bdev)); in blkdev_common_ioctl()
/linux-6.6.21/drivers/md/
Ddm-zoned-target.c795 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()
Ddm-zone.c298 md->disk->nr_zones = bdev_nr_zones(md->disk->part0); in dm_set_zones_restrictions()
/linux-6.6.21/include/linux/
Dblkdev.h338 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/
Dzoned.c166 nullb->disk->nr_zones = bdev_nr_zones(nullb->disk->part0); in null_register_zoned_dev()