• Home
  • Raw
  • Download

Lines Matching refs:zd

1492 static int zonefs_create_zgroup(struct zonefs_zone_data *zd,  in zonefs_create_zgroup()  argument
1495 struct super_block *sb = zd->sb; in zonefs_create_zgroup()
1505 if (!zd->nr_zones[type]) in zonefs_create_zgroup()
1526 end = zd->zones + blkdev_nr_zones(sb->s_bdev->bd_disk); in zonefs_create_zgroup()
1527 for (zone = &zd->zones[1]; zone < end; zone = next) { in zonefs_create_zgroup()
1589 struct zonefs_zone_data *zd = data; in zonefs_get_zone_info_cb() local
1599 zd->nr_zones[ZONEFS_ZTYPE_CNV]++; in zonefs_get_zone_info_cb()
1604 zd->nr_zones[ZONEFS_ZTYPE_SEQ]++; in zonefs_get_zone_info_cb()
1607 zonefs_err(zd->sb, "Unsupported zone type 0x%x\n", in zonefs_get_zone_info_cb()
1612 memcpy(&zd->zones[idx], zone, sizeof(struct blk_zone)); in zonefs_get_zone_info_cb()
1617 static int zonefs_get_zone_info(struct zonefs_zone_data *zd) in zonefs_get_zone_info() argument
1619 struct block_device *bdev = zd->sb->s_bdev; in zonefs_get_zone_info()
1622 zd->zones = kvcalloc(blkdev_nr_zones(bdev->bd_disk), in zonefs_get_zone_info()
1624 if (!zd->zones) in zonefs_get_zone_info()
1629 zonefs_get_zone_info_cb, zd); in zonefs_get_zone_info()
1631 zonefs_err(zd->sb, "Zone report failed %d\n", ret); in zonefs_get_zone_info()
1636 zonefs_err(zd->sb, "Invalid zone report (%d/%u zones)\n", in zonefs_get_zone_info()
1644 static inline void zonefs_cleanup_zone_info(struct zonefs_zone_data *zd) in zonefs_cleanup_zone_info() argument
1646 kvfree(zd->zones); in zonefs_cleanup_zone_info()
1742 struct zonefs_zone_data zd; in zonefs_fill_super() local
1792 memset(&zd, 0, sizeof(struct zonefs_zone_data)); in zonefs_fill_super()
1793 zd.sb = sb; in zonefs_fill_super()
1794 ret = zonefs_get_zone_info(&zd); in zonefs_fill_super()
1826 ret = zonefs_create_zgroup(&zd, t); in zonefs_fill_super()
1832 zonefs_cleanup_zone_info(&zd); in zonefs_fill_super()