From 1c540b11703e195414ee2a101de90d61c36415ac Mon Sep 17 00:00:00 2001 From: Justin Waters Date: Thu, 29 May 2008 12:11:33 -0400 Subject: Update YAFFS to match new FS API The readfile method in the file_operations struct has been deprecated as of 2.6.22 and replaced with spliceread. This updates YAFFS to match. Signed-off-by: Justin Waters --- fs/yaffs2/yaffs_fs.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3