f2fs: handle readonly filesystem in f2fs_ioc_shutdown()
authorChao Yu <yuchao0@huawei.com>
Mon, 8 Jun 2020 12:03:16 +0000 (20:03 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 9 Jun 2020 03:37:53 +0000 (20:37 -0700)
commit8626441f05dc45a2f4693ee6863d02456ce39e60
treef4f61ada7bad34477c523a2ca1f658c2e1ae6037
parentfc3bb095ab02b9e7d89a069ade2cead15c64c504
f2fs: handle readonly filesystem in f2fs_ioc_shutdown()

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>
fs/f2fs/file.c