f2fs: flush pending checkpoints when freezing super
authorJaegeuk Kim <jaegeuk@kernel.org>
Fri, 19 Aug 2022 22:52:02 +0000 (15:52 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Oct 2022 10:34:27 +0000 (12:34 +0200)
commit0035b84223debe8a64ebd626b4e8a9f20b96a008
treed7cf399c5b66b7bc9573354d7b54d1e738fbb949
parentab4958975490d0fbd2f9709e40e66bd2c679297b
f2fs: flush pending checkpoints when freezing super

commit c7b58576370147833999fd4cc874d0f918bdf9ca upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/f2fs/checkpoint.c
fs/f2fs/f2fs.h
fs/f2fs/super.c