X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=fs%2Fcifs%2Fioctl.c;h=77492301cc2b16c0f82ecea64de7bfb02fe31db5;hb=59fb2f0e9e30ad99a8bab0ff1efaf8f4a3b7105f;hp=409b45eefe7086899ae4da636b96cd8c07794dd5;hpb=d5bdaf4f68f0590fc481bca54bcaffeb27b75fca;p=mirror_ubuntu-zesty-kernel.git diff --git a/fs/cifs/ioctl.c b/fs/cifs/ioctl.c index 409b45eefe70..77492301cc2b 100644 --- a/fs/cifs/ioctl.c +++ b/fs/cifs/ioctl.c @@ -26,13 +26,15 @@ #include #include #include -#include #include "cifspdu.h" #include "cifsglob.h" #include "cifsproto.h" #include "cifs_debug.h" #include "cifsfs.h" +#define CIFS_IOCTL_MAGIC 0xCF +#define CIFS_IOC_COPYCHUNK_FILE _IOW(CIFS_IOCTL_MAGIC, 3, int) + static long cifs_ioctl_clone(unsigned int xid, struct file *dst_file, unsigned long srcfd, u64 off, u64 len, u64 destoff) { @@ -213,7 +215,7 @@ long cifs_ioctl(struct file *filep, unsigned int command, unsigned long arg) cifs_dbg(FYI, "set compress flag rc %d\n", rc); } break; - case BTRFS_IOC_CLONE: + case CIFS_IOC_COPYCHUNK_FILE: rc = cifs_ioctl_clone(xid, filep, arg, 0, 0, 0); break; default: