Unionfs: use the splice_read file method instead of sendfile
authorErez_Zadok <ezk@cs.sunysb.edu>
Wed, 11 Jul 2007 20:13:07 +0000 (16:13 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Sun, 6 Mar 2011 08:42:33 +0000 (03:42 -0500)
In 2.6.23 (prior to rc1), sendfile was obsoleted in favor of splice_read.

Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/file.c

index e978766e715dc6cbc041e1f56cfeecf1d71a8d1a..ab243ccae3f1d7a5abb1c73174d9693ad258a5fa 100644 (file)
@@ -153,5 +153,5 @@ struct file_operations unionfs_main_fops = {
        .flush          = unionfs_flush,
        .release        = unionfs_file_release,
        .fsync          = file_fsync,
-       .sendfile       = generic_file_sendfile,
+       .splice_read    = generic_file_splice_read,
 };