From: Paolo 'Blaisorblade' Giarrusso <[email protected]>
Cc: Alexander Viro <[email protected]>
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 <[email protected]>
---
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,
_