]> git.baikalelectronics.ru Git - kernel.git/commit
zonefs: fix handling of explicit_open option on mount
authorDamien Le Moal <damien.lemoal@opensource.wdc.com>
Thu, 2 Jun 2022 14:16:57 +0000 (23:16 +0900)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Wed, 8 Jun 2022 06:38:42 +0000 (15:38 +0900)
commit7312177567b3716fd579c223b412797a81062f35
treecf211fc5a862e74b23a33567ec21e6a94ae4e15f
parentf040cca4b0da0180bf9de9141ef5c95f60f85182
zonefs: fix handling of explicit_open option on mount

Ignoring the explicit_open mount option on mount for devices that do not
have a limit on the number of open zones must be done after the mount
options are parsed and set in s_mount_opts. Move the check to ignore
the explicit_open option after the call to zonefs_parse_options() in
zonefs_fill_super().

Fixes: cd31a9c0dbde ("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: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
fs/zonefs/super.c