diff options
author | Christoph Hellwig <hch@lst.de> | 2020-11-04 09:27:35 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-11-06 19:05:18 +0100 |
commit | 70fce7d2253938191275ebcbd46efe45fceb05a1 (patch) | |
tree | 190d015e7d0493a8ee238185195110297a8c4eee /fs/proc/cpuinfo.c | |
parent | proc: wire up generic_file_splice_read for iter ops (diff) | |
download | linux-70fce7d2253938191275ebcbd46efe45fceb05a1.tar.xz linux-70fce7d2253938191275ebcbd46efe45fceb05a1.zip |
proc/cpuinfo: switch to ->read_iter
Implement ->read_iter so that the Android bionic test suite can use
this random proc file for its splice test case.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
-rw-r--r-- | fs/proc/cpuinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/cpuinfo.c b/fs/proc/cpuinfo.c index d0989a443c77..419760fd77bd 100644 --- a/fs/proc/cpuinfo.c +++ b/fs/proc/cpuinfo.c @@ -19,7 +19,7 @@ static int cpuinfo_open(struct inode *inode, struct file *file) static const struct proc_ops cpuinfo_proc_ops = { .proc_flags = PROC_ENTRY_PERMANENT, .proc_open = cpuinfo_open, - .proc_read = seq_read, + .proc_read_iter = seq_read_iter, .proc_lseek = seq_lseek, .proc_release = seq_release, }; |