]> 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)
commit209417cc61b59211684bff5a6db8e67d6d10b20f
treea0194e6cc3af814f6d62ddcc4002614f661931ad
parentf99d18a030bfde545a8aa3afb39f6c74e9f1e5c2
zonefs: Fix zonefs_init_file_inode() return value

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