Skip to contentSkip to conversation

Fix generic_file_send()

PATCH New OGAWA Hirofumi 1 participant 1 message Aug 12, 2002

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix generic_file_send()

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.

Signature · 13 lines
OGAWA Hirofumi <[email protected]>

--- 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;