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, 1 Aug 2018 18:52:36 +0000 (11:52 -0700)
commit82cf4f132e6d16dca6fc3bd955019246141bc645
tree393c07d89cb599448a064db0331a728f0ec8b39c
parent18767e62639622554c3642a6e3f3b0ca19bc1d9d
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