diff options
| author | Greg Kroah-Hartman <[email protected]> | 2020-11-04 08:27:37 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2020-11-06 18:05:18 +0000 |
| commit | 7cfc630e63b4f7b2ab5a1238c566a6b799ae1624 (patch) | |
| tree | ed7e9481a632e2ef783885191e9ee8cc374ac60b /fs/proc/generic.c | |
| parent | proc/stat: switch to ->read_iter (diff) | |
| download | kernel-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.c | 2 |
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, }; |
