]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: fix wrong checkpoint_changed value in f2fs_remount()
authorChao Yu <chao@kernel.org>
Thu, 29 Jul 2021 01:22:17 +0000 (09:22 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 2 Aug 2021 18:24:26 +0000 (11:24 -0700)
commitd978747086e86e17730e45eb5b9c7114f30e798f
tree54a4280568d9b749050bd80b20b510b17a64bcf0
parent5218e59128f81767f34a79a1ad914aaa6e5dd428
f2fs: fix wrong checkpoint_changed value in f2fs_remount()

In f2fs_remount(), return value of test_opt() is an unsigned int type
variable, however when we compare it to a bool type variable, it cause
wrong result, fix it.

Fixes: f59bf4b198b9 ("f2fs: checkpoint disabling")
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c