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)
commit277afbde6ca2b38729683fc17c031b4bc942068d
tree54a4280568d9b749050bd80b20b510b17a64bcf0
parent2e650912c037a501ea6fc367c7075ead63a114f7
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: 4354994f097d ("f2fs: checkpoint disabling")
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c