]> git.karo-electronics.de Git - linux-beck.git/commit
f2fs: freeze filesystem when fail to update meta page due to IO error
authorChao Yu <chao2.yu@samsung.com>
Wed, 29 Jul 2015 09:33:13 +0000 (17:33 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 5 Aug 2015 15:08:17 +0000 (08:08 -0700)
commitf3f338caad3428fbc4bb563828efc6ecce4d956b
tree77e414f71793e873e5c4228b91920e3926bbee0c
parent5768dcdd7f7675f9540e648428c8a1cd7208a0fe
f2fs: freeze filesystem when fail to update meta page due to IO error

In get_meta_page, we guarantee no failure for the returned page,
but sometimes, IO error from device will incur returning an
non-updated page.

Then, we still use this page as updated one, exception could happen
when using this kind of page.

So in this condition, we'd better freeze fs by making fs readonly and
and stop doing checkpoint.

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/checkpoint.c