diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-08-07 05:05:19 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-08-07 05:05:19 -0700 |
commit | 22782ffc9dc2e39b0cb9d0ff1abe0ed891467158 (patch) | |
tree | 359fa7d598078095511fed1b756e816bb16ca489 /net | |
parent | ae61518fec12b954a5f56c6ad2aad1370e6f9174 (diff) | |
download | history-22782ffc9dc2e39b0cb9d0ff1abe0ed891467158.tar.gz |
Teach sendfile() to honour non-seekable source files.
Remove the test from the socket code, now that it's no
longer necessary.
Diffstat (limited to 'net')
-rw-r--r-- | net/socket.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/socket.c b/net/socket.c index 58398204d92cd0..275d8cf6d3beca 100644 --- a/net/socket.c +++ b/net/socket.c @@ -727,9 +727,6 @@ ssize_t sock_sendpage(struct file *file, struct page *page, struct socket *sock; int flags; - if (ppos != &file->f_pos) - return -ESPIPE; - sock = SOCKET_I(file->f_dentry->d_inode); flags = !(file->f_flags & O_NONBLOCK) ? 0 : MSG_DONTWAIT; |