Commit fe33850f authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Linus Torvalds

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: default avatarChristoph Hellwig <hch@lst.de>
Tested-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent d4d50710
...@@ -597,6 +597,7 @@ static const struct file_operations proc_iter_file_ops = { ...@@ -597,6 +597,7 @@ static const struct file_operations proc_iter_file_ops = {
.llseek = proc_reg_llseek, .llseek = proc_reg_llseek,
.read_iter = proc_reg_read_iter, .read_iter = proc_reg_read_iter,
.write = proc_reg_write, .write = proc_reg_write,
.splice_read = generic_file_splice_read,
.poll = proc_reg_poll, .poll = proc_reg_poll,
.unlocked_ioctl = proc_reg_unlocked_ioctl, .unlocked_ioctl = proc_reg_unlocked_ioctl,
.mmap = proc_reg_mmap, .mmap = proc_reg_mmap,
...@@ -622,6 +623,7 @@ static const struct file_operations proc_reg_file_ops_compat = { ...@@ -622,6 +623,7 @@ static const struct file_operations proc_reg_file_ops_compat = {
static const struct file_operations proc_iter_file_ops_compat = { static const struct file_operations proc_iter_file_ops_compat = {
.llseek = proc_reg_llseek, .llseek = proc_reg_llseek,
.read_iter = proc_reg_read_iter, .read_iter = proc_reg_read_iter,
.splice_read = generic_file_splice_read,
.write = proc_reg_write, .write = proc_reg_write,
.poll = proc_reg_poll, .poll = proc_reg_poll,
.unlocked_ioctl = proc_reg_unlocked_ioctl, .unlocked_ioctl = proc_reg_unlocked_ioctl,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment