diff options
author | avg <avg@FreeBSD.org> | 2012-11-19 11:25:20 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2012-11-19 11:25:20 +0000 |
commit | fa56f18a284878fbe5203a102bafe2ef3191c976 (patch) | |
tree | 75c6f6f0c8ffcf4fa2becf2a9253598d0f2dc728 /sys/cddl | |
parent | 6a42ee320e66f21d8ce7b3e241cabd680112b99e (diff) | |
download | FreeBSD-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.c | 3 |
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; |