summaryrefslogtreecommitdiffstats
path: root/sys/cddl
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2012-11-19 11:25:20 +0000
committeravg <avg@FreeBSD.org>2012-11-19 11:25:20 +0000
commitfa56f18a284878fbe5203a102bafe2ef3191c976 (patch)
tree75c6f6f0c8ffcf4fa2becf2a9253598d0f2dc728 /sys/cddl
parent6a42ee320e66f21d8ce7b3e241cabd680112b99e (diff)
downloadFreeBSD-src-fa56f18a284878fbe5203a102bafe2ef3191c976.zip
FreeBSD-src-fa56f18a284878fbe5203a102bafe2ef3191c976.tar.gz
zfs_remove: set VV_NOSYNC flag if a node is unlinked
Suggested by: kib MFC after: 12 days
Diffstat (limited to 'sys/cddl')
-rw-r--r--sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c
index 6b6f537..9531bbf 100644
--- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c
+++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c
@@ -1937,6 +1937,9 @@ top:
} else if (unlinked) {
mutex_exit(&zp->z_lock);
zfs_unlinked_add(zp, tx);
+#ifdef __FreeBSD__
+ vp->v_vflag |= VV_NOSYNC;
+#endif
}
txtype = TX_REMOVE;
OpenPOWER on IntegriCloud