zonefs: Cache zone group directory inodes
authorDamien Le Moal <damien.lemoal@opensource.wdc.com>
Wed, 4 Jan 2023 08:20:55 +0000 (17:20 +0900)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Mon, 23 Jan 2023 00:25:51 +0000 (09:25 +0900)
commit43592c46375a056b411b065acf2d37fc1e3ab251
treef331151261d2f067a6fb51e980bead844a8b545e
parentd207794ababe5c3ad72e965c5e1023cfaf4ab1bb
zonefs: Cache zone group directory inodes

Since looking up any zone file inode requires looking up first the inode
for the directory representing the zone group of the file, ensuring that
the zone group inodes are always cached is desired. To do so, take an
extra reference on the zone groups directory inodes on mount, thus
avoiding the eviction of these inodes from the inode cache until the
volume is unmounted.

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