]> git.baikalelectronics.ru Git - kernel.git/commit
zonefs: add zone-capacity support
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>
Tue, 21 Jul 2020 12:10:26 +0000 (21:10 +0900)
committerDamien Le Moal <damien.lemoal@wdc.com>
Tue, 11 Aug 2020 08:42:24 +0000 (17:42 +0900)
commite3c3155bc95ab6a7b21ac40418bf80bedb204949
tree6ff49ead35604c82a93c6f70210d3990f357da5d
parent00e4db51259a5f936fec1424b884f029479d3981
zonefs: add zone-capacity support

In the zoned storage model, the sectors within a zone are typically all
writeable. With the introduction of the Zoned Namespace (ZNS) Command
Set in the NVM Express organization, the model was extended to have a
specific writeable capacity.

This zone capacity can be less than the overall zone size for a NVMe ZNS
device or null_blk in zoned-mode. For other ZBC/ZAC devices the zone
capacity is always equal to the zone size.

Use the zone capacity field instead from blk_zone for determining the
maximum inode size and inode blocks in zonefs.

Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
fs/zonefs/super.c
fs/zonefs/zonefs.h