Skip to content

Commit 70fce7d

Browse files
Christoph Hellwigtorvalds
authored andcommitted
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 <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent fe33850 commit 70fce7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/proc/cpuinfo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ static int cpuinfo_open(struct inode *inode, struct file *file)
1919
static const struct proc_ops cpuinfo_proc_ops = {
2020
.proc_flags = PROC_ENTRY_PERMANENT,
2121
.proc_open = cpuinfo_open,
22-
.proc_read = seq_read,
22+
.proc_read_iter = seq_read_iter,
2323
.proc_lseek = seq_lseek,
2424
.proc_release = seq_release,
2525
};

0 commit comments

Comments
 (0)