]> git.proxmox.com Git - mirror_zfs.git/commitdiff
zfsctl: No need to sync ctldir inodes
authorAndrey Vesnovaty <andrey.vesnovaty@gmail.com>
Mon, 12 Aug 2013 18:47:04 +0000 (21:47 +0300)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 31 Aug 2015 20:54:39 +0000 (13:54 -0700)
There's no metadata to write to disk for ctldir inodes. So we check if
a inode belongs to the ctldir in zpl_commit_metadata, and returns
immediately if it is.

Signed-off-by: Andrey Vesnovaty <andrey.vesnovaty@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #2797

module/zfs/zpl_export.c

index 4da3a4531c0c8a5bcea6b217db7d4cf457925070..6f051a0485a11208cd3f5e327205ccd4a3d6861d 100644 (file)
@@ -152,6 +152,9 @@ zpl_commit_metadata(struct inode *inode)
        fstrans_cookie_t cookie;
        int error;
 
+       if (zfsctl_is_node(inode))
+               return (0);
+
        crhold(cr);
        cookie = spl_fstrans_mark();
        error = -zfs_fsync(inode, 0, cr);