lkml.org 
[lkml]   [2004]   [Nov]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[patch 1/4] hostfs - uml: set .sendfile to generic_file_sendfile
From
Date

From: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Cc: Alexander Viro <viro@parcelfarce.linux.theplanet.co.uk>

Make hostfs use the generic sendfile implementation. As you can see, the
problem was simply that it was forgot to set hostfs_file_fops.sendfile to
point to it. I've got one report that it works, and since hostfs uses the VFS
cache it seems reasonable. However, can somebody confirm this?

Also, is there anything spotting similar treatment?

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
---

linux-2.6.10-rc-paolo/fs/hostfs/hostfs_kern.c | 1 +
1 files changed, 1 insertion(+)

diff -puN fs/hostfs/hostfs_kern.c~uml-hostfs-add-sendfile fs/hostfs/hostfs_kern.c
--- linux-2.6.10-rc/fs/hostfs/hostfs_kern.c~uml-hostfs-add-sendfile 2004-11-18 14:32:39.436315536 +0100
+++ linux-2.6.10-rc-paolo/fs/hostfs/hostfs_kern.c 2004-11-18 14:32:39.439315080 +0100
@@ -393,6 +393,7 @@ int hostfs_fsync(struct file *file, stru
static struct file_operations hostfs_file_fops = {
.llseek = generic_file_llseek,
.read = generic_file_read,
+ .sendfile = generic_file_sendfile,
.write = generic_file_write,
.mmap = generic_file_mmap,
.open = hostfs_file_open,
_
-
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/
\
 
 \ /
  Last update: 2005-03-22 14:08    [W:0.022 / U:0.820 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site