diff options
Diffstat (limited to 'net/socket.c')
-rw-r--r-- | net/socket.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/net/socket.c b/net/socket.c index fcd77eac0ccf..b13042f68c02 100644 --- a/net/socket.c +++ b/net/socket.c | |||
@@ -119,6 +119,9 @@ static ssize_t sock_writev(struct file *file, const struct iovec *vector, | |||
119 | static ssize_t sock_sendpage(struct file *file, struct page *page, | 119 | static ssize_t sock_sendpage(struct file *file, struct page *page, |
120 | int offset, size_t size, loff_t *ppos, int more); | 120 | int offset, size_t size, loff_t *ppos, int more); |
121 | 121 | ||
122 | extern ssize_t generic_splice_sendpage(struct inode *inode, struct file *out, | ||
123 | size_t len, unsigned int flags); | ||
124 | |||
122 | 125 | ||
123 | /* | 126 | /* |
124 | * Socket files have a set of 'special' operations as well as the generic file ones. These don't appear | 127 | * Socket files have a set of 'special' operations as well as the generic file ones. These don't appear |
@@ -141,7 +144,8 @@ static struct file_operations socket_file_ops = { | |||
141 | .fasync = sock_fasync, | 144 | .fasync = sock_fasync, |
142 | .readv = sock_readv, | 145 | .readv = sock_readv, |
143 | .writev = sock_writev, | 146 | .writev = sock_writev, |
144 | .sendpage = sock_sendpage | 147 | .sendpage = sock_sendpage, |
148 | .splice_write = generic_splice_sendpage, | ||
145 | }; | 149 | }; |
146 | 150 | ||
147 | /* | 151 | /* |