Do not consume extra reference. This is a bug in r287479.

Reported and tested by:	pho
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
This commit is contained in:
kib 2015-09-05 12:28:18 +00:00
parent e72671b79f
commit 9a0916a6b3

View File

@ -13325,8 +13325,7 @@ softdep_ast_cleanup_proc(void)
if (softdep_excess_items(ump, D_NEWBLK) || if (softdep_excess_items(ump, D_NEWBLK) ||
softdep_excess_items(ump, D_ALLOCDIRECT) || softdep_excess_items(ump, D_ALLOCDIRECT) ||
softdep_excess_items(ump, D_ALLOCINDIR)) { softdep_excess_items(ump, D_ALLOCINDIR)) {
error = vn_start_write(NULL, &mp, V_MNTREF | error = vn_start_write(NULL, &mp, V_WAIT);
V_WAIT);
if (error == 0) { if (error == 0) {
req = true; req = true;
VFS_SYNC(mp, MNT_WAIT); VFS_SYNC(mp, MNT_WAIT);