Commit 7cfc630e authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman Committed by Linus Torvalds

proc "single files": switch to ->read_iter

Implement ->read_iter for all proc "single files" so that more bionic
tests cases can pass when they call splice() on other fun files like
/proc/version
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 28589f9e
...@@ -621,7 +621,7 @@ static int proc_single_open(struct inode *inode, struct file *file) ...@@ -621,7 +621,7 @@ static int proc_single_open(struct inode *inode, struct file *file)
static const struct proc_ops proc_single_ops = { static const struct proc_ops proc_single_ops = {
/* not permanent -- can call into arbitrary ->single_show */ /* not permanent -- can call into arbitrary ->single_show */
.proc_open = proc_single_open, .proc_open = proc_single_open,
.proc_read = seq_read, .proc_read_iter = seq_read_iter,
.proc_lseek = seq_lseek, .proc_lseek = seq_lseek,
.proc_release = single_release, .proc_release = single_release,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment