diff options
author | Christoph Hellwig <hch@lst.de> | 2020-11-04 09:27:36 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-11-06 10:05:18 -0800 |
commit | 28589f9e0f942377e9994711f5765b01d1b8eaa2 (patch) | |
tree | 171968321572f0b0d690f662180b4528a1cfcde1 /fs | |
parent | 70fce7d2253938191275ebcbd46efe45fceb05a1 (diff) | |
download | linux-riscv-28589f9e0f942377e9994711f5765b01d1b8eaa2.tar.gz linux-riscv-28589f9e0f942377e9994711f5765b01d1b8eaa2.tar.bz2 linux-riscv-28589f9e0f942377e9994711f5765b01d1b8eaa2.zip |
proc/stat: switch to ->read_iter
Implement ->read_iter so that splice can be used on this file.
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/proc/stat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/stat.c b/fs/proc/stat.c index 46b3293015fe..4695b6de3151 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, }; |