提交 93ff5b49 编写于 作者: Y Yang Yingliang

Revert "uce: pagecache reading scenario add shmem support"

This reverts commit 71e735a4.
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 bde4e1a3
......@@ -2661,12 +2661,7 @@ static ssize_t shmem_file_read_iter(struct kiocb *iocb, struct iov_iter *to)
* Ok, we have the page, and it's up-to-date, so
* now we can copy it to user space...
*/
#ifdef CONFIG_UCE_KERNEL_RECOVERY
if (is_pagecache_reading_kernel_recovery_enable())
ret = copy_page_to_iter_generic_read(page, offset, nr, to);
else
ret = copy_page_to_iter(page, offset, nr, to);
#endif
retval += ret;
offset += ret;
index += offset >> PAGE_SHIFT;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册