projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe33850
)
proc/cpuinfo: switch to ->read_iter
author
Christoph Hellwig
<hch@lst.de>
Wed, 4 Nov 2020 08:27:35 +0000
(09:27 +0100)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Fri, 6 Nov 2020 18:05:18 +0000
(10:05 -0800)
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>
fs/proc/cpuinfo.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/proc/cpuinfo.c
b/fs/proc/cpuinfo.c
index d0989a443c77dfe2b99207697a391bef17032c92..419760fd77bdd82b1fa1d1565bbcc8d13ae25967 100644
(file)
--- 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,
};