f2fs: fix to active page in lru list for read path
authorChao Yu <yuchao0@huawei.com>
Fri, 27 Jul 2018 10:15:14 +0000 (18:15 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 5 Sep 2018 22:17:48 +0000 (15:17 -0700)
commit6fffb33eac34d62fe4ee0068e7f1f300fa9df764
tree313ff08b320bfa8ce9095f04ba04bc7b4138f92b
parent09bc4de4c933e93d0ca8f6ab748b22aec6e062b0
f2fs: fix to active page in lru list for read path

If config CONFIG_F2FS_FAULT_INJECTION is on, for both read or write path
we will call find_lock_page() to get the page, but for read path, it
missed to passing FGP_ACCESSED to allocator to active the page in LRU
list, result in being reclaimed in advance incorrectly, fix it.

Reported-by: Xianrong Zhou <zhouxianrong@huawei.com>
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h