Skip to content

Commit 7cfc630

Browse files
gregkhtorvalds
authored andcommitted
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: Greg Kroah-Hartman <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 28589f9 commit 7cfc630

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/proc/generic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ static int proc_single_open(struct inode *inode, struct file *file)
621621
static const struct proc_ops proc_single_ops = {
622622
/* not permanent -- can call into arbitrary ->single_show */
623623
.proc_open = proc_single_open,
624-
.proc_read = seq_read,
624+
.proc_read_iter = seq_read_iter,
625625
.proc_lseek = seq_lseek,
626626
.proc_release = single_release,
627627
};

0 commit comments

Comments
 (0)