diff options
author | Christoph Hellwig <hch@lst.de> | 2020-11-04 11:27:35 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-11-06 21:05:18 +0300 |
commit | 70fce7d2253938191275ebcbd46efe45fceb05a1 (patch) | |
tree | 190d015e7d0493a8ee238185195110297a8c4eee | |
parent | fe33850ff798eb8d57eea88cc14090770013bb73 (diff) | |
download | linux-70fce7d2253938191275ebcbd46efe45fceb05a1.tar.xz |
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.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, }; |