Skip to content

Commit fe33850

Browse files
Christoph Hellwigtorvalds
authored andcommitted
proc: wire up generic_file_splice_read for iter ops
Wire up generic_file_splice_read for the iter based proxy ops, so that splice reads from them work. Signed-off-by: Christoph Hellwig <[email protected]> Tested-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent d4d5071 commit fe33850

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fs/proc/inode.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,7 @@ static const struct file_operations proc_iter_file_ops = {
597597
.llseek = proc_reg_llseek,
598598
.read_iter = proc_reg_read_iter,
599599
.write = proc_reg_write,
600+
.splice_read = generic_file_splice_read,
600601
.poll = proc_reg_poll,
601602
.unlocked_ioctl = proc_reg_unlocked_ioctl,
602603
.mmap = proc_reg_mmap,
@@ -622,6 +623,7 @@ static const struct file_operations proc_reg_file_ops_compat = {
622623
static const struct file_operations proc_iter_file_ops_compat = {
623624
.llseek = proc_reg_llseek,
624625
.read_iter = proc_reg_read_iter,
626+
.splice_read = generic_file_splice_read,
625627
.write = proc_reg_write,
626628
.poll = proc_reg_poll,
627629
.unlocked_ioctl = proc_reg_unlocked_ioctl,

0 commit comments

Comments
 (0)