]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit366ffc173c1b9bffc275f73761b2b8861199d6fa
treea0194e6cc3af814f6d62ddcc4002614f661931ad
parentee12cca73cf64bc3b5164c7ad948379b7fcf5d6e
zonefs: Fix zonefs_init_file_inode() return value

Commit fabb288e3aeb ("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: fabb288e3aeb ("zonefs: Add active seq file accounting")
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
fs/zonefs/super.c