]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
UBUNTU: zfs: remove the never implemented aio_fsync file operation
authorTim Gardner <tim.gardner@canonical.com>
Mon, 14 Nov 2016 16:21:53 +0000 (09:21 -0700)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 20 Feb 2017 03:57:58 +0000 (20:57 -0700)
Fixes FTBS, see commit 723c038475b78edc9327eb952f95f9881cc9d79d ('fs: remove
the never implemented aio_fsync file operation')

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
zfs/module/zfs/zpl_file.c

index 2c84d700d6d1e636a633dcaf094dfe20906af92e..2a3c7b1dfd51259adf0dc56aefa8d1d77f4cb57e 100644 (file)
@@ -130,12 +130,6 @@ zpl_fsync(struct file *filp, struct dentry *dentry, int datasync)
        return (error);
 }
 
-static int
-zpl_aio_fsync(struct kiocb *kiocb, int datasync)
-{
-       struct file *filp = kiocb->ki_filp;
-       return (zpl_fsync(filp, file_dentry(filp), datasync));
-}
 #elif defined(HAVE_FSYNC_WITHOUT_DENTRY)
 /*
  * Linux 2.6.35 - 3.0 API,
@@ -161,11 +155,6 @@ zpl_fsync(struct file *filp, int datasync)
        return (error);
 }
 
-static int
-zpl_aio_fsync(struct kiocb *kiocb, int datasync)
-{
-       return (zpl_fsync(kiocb->ki_filp, datasync));
-}
 #elif defined(HAVE_FSYNC_RANGE)
 /*
  * Linux 3.1 - 3.x API,
@@ -196,11 +185,6 @@ zpl_fsync(struct file *filp, loff_t start, loff_t end, int datasync)
        return (error);
 }
 
-static int
-zpl_aio_fsync(struct kiocb *kiocb, int datasync)
-{
-       return (zpl_fsync(kiocb->ki_filp, kiocb->ki_pos, -1, datasync));
-}
 #else
 #error "Unsupported fops->fsync() implementation"
 #endif
@@ -838,7 +822,6 @@ const struct file_operations zpl_file_operations = {
 #endif
        .mmap           = zpl_mmap,
        .fsync          = zpl_fsync,
-       .aio_fsync      = zpl_aio_fsync,
 #ifdef HAVE_FILE_FALLOCATE
        .fallocate      = zpl_fallocate,
 #endif /* HAVE_FILE_FALLOCATE */