Skip to content

Commit 28589f9

Browse files
Christoph Hellwigtorvalds
authored andcommitted
proc/stat: switch to ->read_iter
Implement ->read_iter so that splice can be used on this file. Suggested-by: Linus Torvalds <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 70fce7d commit 28589f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/proc/stat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ static int stat_open(struct inode *inode, struct file *file)
226226
static const struct proc_ops stat_proc_ops = {
227227
.proc_flags = PROC_ENTRY_PERMANENT,
228228
.proc_open = stat_open,
229-
.proc_read = seq_read,
229+
.proc_read_iter = seq_read_iter,
230230
.proc_lseek = seq_lseek,
231231
.proc_release = single_release,
232232
};

0 commit comments

Comments
 (0)