summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-11-04 09:27:35 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2020-11-06 10:05:18 -0800
commit70fce7d2253938191275ebcbd46efe45fceb05a1 (patch)
tree190d015e7d0493a8ee238185195110297a8c4eee
parentfe33850ff798eb8d57eea88cc14090770013bb73 (diff)
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>
-rw-r--r--fs/proc/cpuinfo.c2
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,
};