changeset 115:448c45ce46b0

Add generic sendfile method for yaffs2, also thereby allowing loopback mount.
author tpoynor
date Tue, 24 Jan 2006 22:22:52 +0000
parents 8c743969565d
children c110f6f02466
files yaffs_fs.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/yaffs_fs.c
+++ b/yaffs_fs.c
@@ -171,6 +171,10 @@ static struct file_operations yaffs_file
 	.mmap = generic_file_mmap,
 	.flush = yaffs_file_flush,
 	.fsync = yaffs_sync_object,
+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0))
+	.sendfile = generic_file_sendfile,
+#endif
+
 };
 
 static struct inode_operations yaffs_file_inode_operations = {