OSDN Git Service

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:46:56 +0000 (17:46 -0700)
commit0291bd36d076f2ff8c6c6cc3b8715b3399680e00
tree05ceb5d97d47d6371873894a9e7dc844e8b9d0ad
parenta1259450b6dba27306a065b4e079d8fb234d0a4e
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