From b23975cbe0f249671c131b0d6e4ae1bb10594440 Mon Sep 17 00:00:00 2001 From: Andrey Vesnovaty Date: Mon, 12 Aug 2013 21:47:04 +0300 Subject: [PATCH] zfsctl: No need to sync ctldir inodes 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 Signed-off-by: Brian Behlendorf Issue #2797 --- module/zfs/zpl_export.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/module/zfs/zpl_export.c b/module/zfs/zpl_export.c index 4da3a4531..6f051a048 100644 --- a/module/zfs/zpl_export.c +++ b/module/zfs/zpl_export.c @@ -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);