aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/generic.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <[email protected]>2020-11-04 08:27:37 +0000
committerLinus Torvalds <[email protected]>2020-11-06 18:05:18 +0000
commit7cfc630e63b4f7b2ab5a1238c566a6b799ae1624 (patch)
treeed7e9481a632e2ef783885191e9ee8cc374ac60b /fs/proc/generic.c
parentproc/stat: switch to ->read_iter (diff)
downloadkernel-7cfc630e63b4f7b2ab5a1238c566a6b799ae1624.tar.gz
kernel-7cfc630e63b4f7b2ab5a1238c566a6b799ae1624.zip
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]>
Diffstat (limited to 'fs/proc/generic.c')
-rw-r--r--fs/proc/generic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/generic.c b/fs/proc/generic.c
index 2f9fa179194d..f81327673f49 100644
--- a/fs/proc/generic.c
+++ b/fs/proc/generic.c
@@ -621,7 +621,7 @@ static int proc_single_open(struct inode *inode, struct file *file)
static const struct proc_ops proc_single_ops = {
/* not permanent -- can call into arbitrary ->single_show */
.proc_open = proc_single_open,
- .proc_read = seq_read,
+ .proc_read_iter = seq_read_iter,
.proc_lseek = seq_lseek,
.proc_release = single_release,
};