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:
70fce7d
)
proc/stat: switch to ->read_iter
author
Christoph Hellwig
<hch@lst.de>
Wed, 4 Nov 2020 08:27:36 +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 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>
fs/proc/stat.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/proc/stat.c
b/fs/proc/stat.c
index 46b3293015fe61f78dd14781aaabc4b9491da1a2..4695b6de315129aa62daba5131b82a3346bfd25a 100644
(file)
--- 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,
};