Whamcloud - gitweb
LU-15811 llite: Unify range unlock
[fs/lustre-release.git] / lustre / llite / pcc.h
index e704da4..067daef 100644 (file)
@@ -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
 };
@@ -237,11 +239,14 @@ ssize_t pcc_file_read_iter(struct kiocb *iocb, struct iov_iter *iter,
                           bool *cached);
 ssize_t pcc_file_write_iter(struct kiocb *iocb, struct iov_iter *iter,
                            bool *cached);
-int pcc_inode_getattr(struct inode *inode, bool *cached);
+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);