1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00

zfs_freebsd_close: call zfs_close with count=1 instead of count=0

Otherwise we may be leaking z_sync_cnt, which may lead to unnecessary
ZIL sync-ing.

MFC after:	12 days
This commit is contained in:
Andriy Gapon 2012-11-04 13:48:48 +00:00
parent e21e29d716
commit 7ac8ca0d58
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=242566

View File

@ -5661,7 +5661,7 @@ zfs_freebsd_close(ap)
} */ *ap;
{
return (zfs_close(ap->a_vp, ap->a_fflag, 0, 0, ap->a_cred, NULL));
return (zfs_close(ap->a_vp, ap->a_fflag, 1, 0, ap->a_cred, NULL));
}
static int