diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/yaffs2/yaffs_fs.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/yaffs2/yaffs_fs.c b/fs/yaffs2/yaffs_fs.c index 33b7a1b8d527..9db481d1fc04 100644 --- a/fs/yaffs2/yaffs_fs.c +++ b/fs/yaffs2/yaffs_fs.c @@ -216,7 +216,10 @@ static struct file_operations yaffs_file_operations = { .mmap = generic_file_mmap, .flush = yaffs_file_flush, .fsync = yaffs_sync_object, -#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)) + +#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,22)) + .splice_read = generic_file_splice_read, +#elif (LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)) .sendfile = generic_file_sendfile, #endif |