linux-stable/fs/zonefs
Damien Le Moal 5fef6df273 zonefs: Clear inode information flags on inode creation
commit 694852ead2 upstream.

Ensure that the i_flags field of struct zonefs_inode_info is cleared to
0 when initializing a zone file inode, avoiding seeing the flag
ZONEFS_ZONE_OPEN being incorrectly set.

Fixes: b5c00e9757 ("zonefs: open/close zone on file open/close")
Cc: <stable@vger.kernel.org>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Hans Holmberg <hans.holmberg@wdc.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-05-09 09:05:06 +02:00
..
Kconfig zonefs: select CONFIG_CRC32 2021-01-17 14:17:03 +01:00
Makefile
super.c zonefs: Clear inode information flags on inode creation 2022-05-09 09:05:06 +02:00
zonefs.h zonefs: open/close zone on file open/close 2020-09-15 18:32:52 +09:00