f2fs: allow to read node block after shutdown
authorJaegeuk Kim <jaegeuk@kernel.org>
Wed, 9 Nov 2022 01:59:34 +0000 (17:59 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 11 Nov 2022 17:47:58 +0000 (09:47 -0800)
commite6ecb142429183cef4835f31d4134050ae660032
tree3136c39690821dcecaa86ea20f990c3983d83565
parent3b21b794b5797d35f4fad930b53b1cd881c12dd3
f2fs: allow to read node block after shutdown

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>
fs/f2fs/node.c