zonefs: count pages after truncating the iterator
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>
Thu, 16 Jul 2020 10:37:23 +0000 (19:37 +0900)
committerDamien Le Moal <damien.lemoal@wdc.com>
Mon, 20 Jul 2020 08:59:31 +0000 (17:59 +0900)
commit89ee72376be23a1029a0c65eff8838c262b01d65
tree8761b40863485b21ffcca680d4427d41f1b6dd4b
parent01b2651cfb20ba38429cdb47c68f36e56a2d3cb4
zonefs: count pages after truncating the iterator

Count pages after possibly truncating the iterator to the maximum zone
append size, not before.

Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
fs/zonefs/super.c