The first 2 patches of this series are bug fixes intended for 5.18. The remaining patches improve zonefs zone resource accounting: * Accounting of the number of sequential zone files that are write open is changed to be unconditional, regardless of the use of the explicit-open mount option. * Add accounting for active sequential zone files, that is, maintian a count of the number of sequential zone files that are not empty nor full or that have an explicit open zone. * Add sysfs attributes to export the above 2 counters as well as the device defined limits for open and active zone resources. Damien Le Moal (8): zonefs: Clear inode information flags on inode creation zonefs: Fix management of open zones zonefs: Rename super block information fields zonefs: Always do seq file write open accounting zonefs: Export open zone resource information through sysfs zonefs: Add active seq file accounting documentation: zonefs: Cleanup the mount options section documentation: zonefs: Document sysfs attributes Documentation/filesystems/zonefs.rst | 52 ++++++- fs/zonefs/Makefile | 2 +- fs/zonefs/super.c | 219 +++++++++++++++++++++------ fs/zonefs/sysfs.c | 139 +++++++++++++++++ fs/zonefs/zonefs.h | 18 ++- 5 files changed, 376 insertions(+), 54 deletions(-) create mode 100644 fs/zonefs/sysfs.c -- 2.35.1