From: Christoph Hellwig Date: Wed, 4 Nov 2020 08:27:36 +0000 (+0100) Subject: proc/stat: switch to ->read_iter X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=28589f9e0f942377e9994711f5765b01d1b8eaa2;p=linux.git proc/stat: switch to ->read_iter Implement ->read_iter so that splice can be used on this file. Suggested-by: Linus Torvalds Signed-off-by: Christoph Hellwig Signed-off-by: Linus Torvalds --- diff --git a/fs/proc/stat.c b/fs/proc/stat.c index 46b3293015fe6..4695b6de31512 100644 --- a/fs/proc/stat.c +++ b/fs/proc/stat.c @@ -226,7 +226,7 @@ static int stat_open(struct inode *inode, struct file *file) static const struct proc_ops stat_proc_ops = { .proc_flags = PROC_ENTRY_PERMANENT, .proc_open = stat_open, - .proc_read = seq_read, + .proc_read_iter = seq_read_iter, .proc_lseek = seq_lseek, .proc_release = single_release, };