zfs_remove: set VV_NOSYNC flag if a node is unlinked
Suggested by: kib MFC after: 12 days
This commit is contained in:
parent
b3a6fcb3b7
commit
7b069f7fee
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=243268
@ -1937,6 +1937,9 @@ zfs_remove(vnode_t *dvp, char *name, cred_t *cr, caller_context_t *ct,
|
||||
} else if (unlinked) {
|
||||
mutex_exit(&zp->z_lock);
|
||||
zfs_unlinked_add(zp, tx);
|
||||
#ifdef __FreeBSD__
|
||||
vp->v_vflag |= VV_NOSYNC;
|
||||
#endif
|
||||
}
|
||||
|
||||
txtype = TX_REMOVE;
|
||||
|
Loading…
Reference in New Issue
Block a user