mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 14:04:54 +02:00
FROMLIST: 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. Bug: 171770067 Link: https://lore.kernel.org/r/20201027080745.GA31045@infradead.org Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Change-Id: I163a0609fd23059121d0f28359abe2a4b39b5031
This commit is contained in:
parent
d75b551a83
commit
86aa9dba81
|
|
@ -597,6 +597,7 @@ static const struct file_operations proc_iter_file_ops = {
|
|||
.llseek = proc_reg_llseek,
|
||||
.read_iter = proc_reg_read_iter,
|
||||
.write = proc_reg_write,
|
||||
.splice_read = generic_file_splice_read,
|
||||
.poll = proc_reg_poll,
|
||||
.unlocked_ioctl = proc_reg_unlocked_ioctl,
|
||||
.mmap = proc_reg_mmap,
|
||||
|
|
@ -622,6 +623,7 @@ static const struct file_operations proc_reg_file_ops_compat = {
|
|||
static const struct file_operations proc_iter_file_ops_compat = {
|
||||
.llseek = proc_reg_llseek,
|
||||
.read_iter = proc_reg_read_iter,
|
||||
.splice_read = generic_file_splice_read,
|
||||
.write = proc_reg_write,
|
||||
.poll = proc_reg_poll,
|
||||
.unlocked_ioctl = proc_reg_unlocked_ioctl,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user