zonefs: Fix zonefs_init_file_inode() return value
authorDamien Le Moal <damien.lemoal@opensource.wdc.com>
Mon, 23 May 2022 23:29:39 +0000 (08:29 +0900)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Tue, 24 May 2022 08:06:45 +0000 (17:06 +0900)
commit14bdb047a54d7a44af8633848ad097bbaf1b2cb6
treea0194e6cc3af814f6d62ddcc4002614f661931ad
parent143a6252e1b8ab424b4b293512a97cca7295c182
zonefs: Fix zonefs_init_file_inode() return value

Commit 87c9ce3ffec9 ("zonefs: Add active seq file accounting") wrongly
changed zonefs_init_file_inode() to always return 0 even if the call to
zonefs_zone_mgmt() fails. Fix this by propagating zonefs_zone_mgmt()
return value as the return value for zonefs_init_file_inode().

Fixes: 87c9ce3ffec9 ("zonefs: Add active seq file accounting")
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
fs/zonefs/super.c