f2fs: fix wrong checkpoint_changed value in f2fs_remount() 62/266762/1 accepted/tizen_6.5_unified tizen_6.5 accepted/tizen/6.5/unified/20211121.212438 accepted/tizen/unified/20211119.134218 submit/tizen/20211117.113146 submit/tizen_6.5/20211119.012519
authorChao Yu <chao@kernel.org>
Thu, 18 Nov 2021 06:35:20 +0000 (15:35 +0900)
committerDongwoo Lee <dwoo08.lee@samsung.com>
Thu, 18 Nov 2021 08:47:12 +0000 (17:47 +0900)
commitd8abbead904db6ccda11b7deb855525eda487bf1
treefed22cad34cea2581aaac25cfbe63b4248635a19
parent807584df1d5f372074d914624d94c2c69c3de362
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>
[dwoo08.lee: backport from mainline commit 277afbde6ca2]
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
Change-Id: Icd4dfff441bf84f605d8d09de7be89da88548654
fs/f2fs/super.c