OSDN Git Service

f2fs: disallow switching io_bits option during remount
authorChao Yu <yuchao0@huawei.com>
Fri, 12 Jul 2019 08:57:00 +0000 (16:57 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 23 Aug 2019 14:57:10 +0000 (07:57 -0700)
commit1f78adfab379e53b0bd725b869061d9ba8055943
treeace71597f24862a54e886970308500f95a351141
parentc72db71ed61ff51c2b8189ac9889dd18f22eb612
f2fs: disallow switching io_bits option during remount

If IO alignment feature is turned on after remount, we didn't
initialize mempool of it, it turns out we will encounter panic
during IO submission due to access NULL mempool pointer.

This feature should be set only at mount time, so simply deny
configuring during remount.

This fixes bug reported in bugzilla:

https://bugzilla.kernel.org/show_bug.cgi?id=204135

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