Whamcloud - gitweb
b=22844 Fix build failed for SLES9/PPC64.
authoryangsheng <Sheng.Yang@Sun.COM>
Wed, 19 May 2010 11:03:51 +0000 (19:03 +0800)
committerJohann Lombardi <johann@sun.com>
Wed, 19 May 2010 11:15:11 +0000 (13:15 +0200)
i=johann

lustre/llite/file.c

index 33d562c..9d58f08 100644 (file)
@@ -3029,7 +3029,11 @@ loff_t ll_file_seek(struct file *file, loff_t offset, int origin)
         RETURN(retval);
 }
 
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,5)
+int ll_flush(struct file *file)
+#else
 int ll_flush(struct file *file, fl_owner_t id)
+#endif
 {
         struct inode *inode = file->f_dentry->d_inode;
         struct ll_inode_info *lli = ll_i2info(inode);