]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
f2fs: allow to read node block after shutdown
authorJaegeuk Kim <jaegeuk@kernel.org>
Wed, 9 Nov 2022 01:59:34 +0000 (17:59 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Jan 2023 10:26:31 +0000 (11:26 +0100)
commitdb5fc12d8af76867543d6f8ed92db944d6a8fffb
treea8b2a3e9e33ddb9ce30b5b3d10343eef38405379
parent9035f42b8f4aea2b8f0468e26a1c6ced9ef8aa2b
f2fs: allow to read node block after shutdown

commit e6ecb142429183cef4835f31d4134050ae660032 upstream.

If block address is still alive, we should give a valid node block even after
shutdown. Otherwise, we can see zero data when reading out a file.

Cc: stable@vger.kernel.org
Fixes: 83a3bfdb5a8a ("f2fs: indicate shutdown f2fs to allow unmount successfully")
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/node.c