struct file *h_file);
int vfsub_fsync(struct file *file, struct path *path, int datasync);
+/*
+ * re-use branch fs's ioctl(FICLONE) while aufs itself doesn't support such
+ * ioctl.
+ */
+static inline int vfsub_clone_file_range(struct file *src, struct file *dst,
+ u64 len)
+{
+ int err;
+
+ lockdep_off();
+ err = vfs_clone_file_range(src, 0, dst, 0, len);
+ lockdep_on();
+
+ return err;
+}
+
/* ---------------------------------------------------------------------- */
static inline loff_t vfsub_llseek(struct file *file, loff_t offset, int origin)