From: yangsheng Date: Wed, 19 May 2010 11:03:51 +0000 (+0800) Subject: b=22844 Fix build failed for SLES9/PPC64. X-Git-Tag: v1_8_3_51~26 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=fffb9675b1b1a34620e6fc52fbd6ce6019581644;p=fs%2Flustre-release.git b=22844 Fix build failed for SLES9/PPC64. i=johann --- diff --git a/lustre/llite/file.c b/lustre/llite/file.c index 33d562c..9d58f08 100644 --- a/lustre/llite/file.c +++ b/lustre/llite/file.c @@ -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);