f2fs: don't drop dentry pages after fs shutdown
authorChao Yu <yuchao0@huawei.com>
Mon, 28 May 2018 08:59:26 +0000 (16:59 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 9 Jul 2018 00:40:58 +0000 (17:40 -0700)
commit1b8f49aeb0e4f7cd297c0032c497010b282b9180
tree17f0727deb33b29f8df438e4f892971b293d1e7e
parent5dbd21b17b6318324bafdc150c30e3cb099960f6
f2fs: don't drop dentry pages after fs shutdown

As description in commit "f2fs: don't drop any page on f2fs_cp_error()
case":

"We still provide readdir() after shtudown, so we should keep pages to
avoid additional IOs."

In order to provider lastest directory structure, let's keep dentry
pages in cache after fs shutdown.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c