f2fs: handle readonly filesystem in f2fs_ioc_shutdown()
authorChao Yu <yuchao0@huawei.com>
Mon, 8 Jun 2020 12:03:16 +0000 (20:03 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jun 2020 15:50:19 +0000 (17:50 +0200)
commit390f1688fb4648474b29c8ea6c2c710b689cd669
tree342e4c5894daa248536bbee335781ac4394e3774
parent039a79ef0b1eb81ab060f29e14d3f9df0e6bc447
f2fs: handle readonly filesystem in f2fs_ioc_shutdown()

[ Upstream commit 8626441f05dc45a2f4693ee6863d02456ce39e60 ]

If mountpoint is readonly, we should allow shutdowning filesystem
successfully, this fixes issue found by generic/599 testcase of
xfstest.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/f2fs/file.c