Skip to content

Commit b24c30c

Browse files
Christoph Hellwigtorvalds
authored andcommitted
proc "seq files": switch to ->read_iter
Implement ->read_iter for all proc "seq files" so that splice works on them. Suggested-by: Linus Torvalds <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 7cfc630 commit b24c30c

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
@@ -590,7 +590,7 @@ static int proc_seq_release(struct inode *inode, struct file *file)
590590
static const struct proc_ops proc_seq_ops = {
591591
/* not permanent -- can call into arbitrary seq_operations */
592592
.proc_open = proc_seq_open,
593-
.proc_read = seq_read,
593+
.proc_read_iter = seq_read_iter,
594594
.proc_lseek = seq_lseek,
595595
.proc_release = proc_seq_release,
596596
};

0 commit comments

Comments
 (0)