* [PATCH] Fix generic_file_send()
@ 2002-08-12 17:30 OGAWA Hirofumi
0 siblings, 0 replies; only message in thread
From: OGAWA Hirofumi @ 2002-08-12 17:30 UTC (permalink / raw)
To: Linus Torvalds; +Cc: linux-kernel
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-08-12 17:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-12 17:30 [PATCH] Fix generic_file_send() OGAWA Hirofumi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®