From: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] Fix generic_file_send()
Date: Tue, 13 Aug 2002 02:30:23 +0900 [thread overview]
Message-ID: <874re09e8g.fsf@devron.myhome.or.jp> (raw)
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;
reply other threads:[~2002-08-12 17:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874re09e8g.fsf@devron.myhome.or.jp \
--to=hirofumi@mail.parknet.co.jp \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®