X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fllite%2Fpcc.h;h=067daefb939c669854c5656f1ca4eb482a4d09d6;hb=f37bce8a573dfc5aac1b9f51f4d5c8314ba05d30;hp=4b05c40d14e9b8163b5313afec1ec9a6fa5a36b3;hpb=3f7853b31ef6f5a6c2837403910083057728a842;p=fs%2Flustre-release.git diff --git a/lustre/llite/pcc.h b/lustre/llite/pcc.h index 4b05c40..067daef 100644 --- a/lustre/llite/pcc.h +++ b/lustre/llite/pcc.h @@ -183,8 +183,10 @@ enum pcc_io_type { PIT_FAULT, /* fsync system call handling */ PIT_FSYNC, +#ifdef HAVE_DEFAULT_FILE_SPLICE_READ_EXPORT /* splice_read system call */ PIT_SPLICE_READ, +#endif /* open system call */ PIT_OPEN }; @@ -240,9 +242,11 @@ ssize_t pcc_file_write_iter(struct kiocb *iocb, struct iov_iter *iter, int pcc_inode_getattr(struct inode *inode, u32 request_mask, unsigned int flags, bool *cached); int pcc_inode_setattr(struct inode *inode, struct iattr *attr, bool *cached); +#ifdef HAVE_DEFAULT_FILE_SPLICE_READ_EXPORT ssize_t pcc_file_splice_read(struct file *in_file, loff_t *ppos, struct pipe_inode_info *pipe, size_t count, - unsigned int flags, bool *cached); + unsigned int flags); +#endif int pcc_fsync(struct file *file, loff_t start, loff_t end, int datasync, bool *cached); int pcc_file_mmap(struct file *file, struct vm_area_struct *vma, bool *cached);