projects
/
yaffs2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
394fcf7
)
Add generic sendfile method for yaffs2, also thereby allowing loopback mount.
author
tpoynor
<tpoynor>
Tue, 24 Jan 2006 22:22:52 +0000
(22:22 +0000)
committer
tpoynor
<tpoynor>
Tue, 24 Jan 2006 22:22:52 +0000
(22:22 +0000)
yaffs_fs.c
patch
|
blob
|
history
diff --git
a/yaffs_fs.c
b/yaffs_fs.c
index fb3c13010ee93b55653b87cfc60ef2a6909e152a..3ded1fe8751bdfb8e52aa17daf507bd303702c87 100644
(file)
--- a/
yaffs_fs.c
+++ b/
yaffs_fs.c
@@
-31,7
+31,7
@@
*/
const char *yaffs_fs_c_version =
*/
const char *yaffs_fs_c_version =
- "$Id: yaffs_fs.c,v 1.3
8 2005-12-15 20:27:56 charles
Exp $";
+ "$Id: yaffs_fs.c,v 1.3
9 2006-01-24 22:22:52 tpoynor
Exp $";
extern const char *yaffs_guts_c_version;
#include <linux/config.h>
extern const char *yaffs_guts_c_version;
#include <linux/config.h>
@@
-171,6
+171,10
@@
static struct file_operations yaffs_file_operations = {
.mmap = generic_file_mmap,
.flush = yaffs_file_flush,
.fsync = yaffs_sync_object,
.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 = {
};
static struct inode_operations yaffs_file_inode_operations = {