f2fs: flush pending checkpoints when freezing super
authorJaegeuk Kim <jaegeuk@kernel.org>
Fri, 19 Aug 2022 22:52:02 +0000 (15:52 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 13 Sep 2022 06:07:12 +0000 (23:07 -0700)
commitc7b58576370147833999fd4cc874d0f918bdf9ca
treef7202bfbb28fd6ba52babb4361fac7fa7db910eb
parent265576181b4afda8c60ae85261f55a8430419884
f2fs: flush pending checkpoints when freezing super

This avoids -EINVAL when trying to freeze f2fs.

Cc: stable@vger.kernel.org
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/checkpoint.c
fs/f2fs/f2fs.h
fs/f2fs/super.c