diff options
| author | Christoph Hellwig <[email protected]> | 2020-11-04 08:27:38 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2020-11-06 18:05:18 +0000 |
| commit | b24c30c678630e48cf8e3caefe463e1c6144d029 (patch) | |
| tree | d108dd33becaeef395db666372918dbabdcd5fa7 /fs/proc/generic.c | |
| parent | proc "single files": switch to ->read_iter (diff) | |
| download | kernel-b24c30c678630e48cf8e3caefe463e1c6144d029.tar.gz kernel-b24c30c678630e48cf8e3caefe463e1c6144d029.zip | |
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]>
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 f81327673f49..b84663252add 100644 --- a/fs/proc/generic.c +++ b/fs/proc/generic.c @@ -590,7 +590,7 @@ static int proc_seq_release(struct inode *inode, struct file *file) static const struct proc_ops proc_seq_ops = { /* not permanent -- can call into arbitrary seq_operations */ .proc_open = proc_seq_open, - .proc_read = seq_read, + .proc_read_iter = seq_read_iter, .proc_lseek = seq_lseek, .proc_release = proc_seq_release, }; |
