FROMLIST: proc "single files": switch to ->read_iter

Implement ->read_iter for all proc single files so that more bionic
tests cases can pass.

Bug: 171770067
Link: https://lore.kernel.org/r/20201027080745.GA31045@infradead.org
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Id2797cb2bc8607a26102afbebf8c18d0c77a08b8
This commit is contained in:
Greg Kroah-Hartman
2020-10-28 16:56:05 +01:00
parent bbaefffb7f
commit 96a3f5ac39

View File

@@ -621,7 +621,7 @@ static int proc_single_open(struct inode *inode, struct file *file)
static const struct proc_ops proc_single_ops = {
/* not permanent -- can call into arbitrary ->single_show */
.proc_open = proc_single_open,
.proc_read = seq_read,
.proc_read_iter = seq_read_iter,
.proc_lseek = seq_lseek,
.proc_release = single_release,
};