Hi,
sys_sendfile() call,
do_sendfile(out_fd, in_fd, &pos, count, MAX_NON_LFS);
in_file->f_op->sendfile(out_file, in_file, ppos, count);
But,
ssize_t generic_file_sendfile(struct file *in_file, struct file *out_file,
loff_t *ppos, size_t count)
fist arg of generic_file_sendfile() should be for output. This patch
fixes this typo.
Please apply.
-- OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>--- linux-2.5.31/mm/filemap.c~ 2002-08-11 10:41:26.000000000 +0900 +++ linux-2.5.31/mm/filemap.c 2002-08-11 18:28:18.000000000 +0900 @@ -1109,7 +1109,7 @@ return written; } -ssize_t generic_file_sendfile(struct file *in_file, struct file *out_file, +ssize_t generic_file_sendfile(struct file *out_file, struct file *in_file, loff_t *ppos, size_t count) { read_descriptor_t desc; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Thu Aug 15 2002 - 22:00:28 EST