Remove extra call to vfs_op_exit() from vfs_write_suspend() when VFS_SYNC() fails.

The vfs_write_resume() handler already does vfs_op_exit() for us.

Reported by:	pho
Reviewed by:	mckusick
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Konstantin Belousov 2020-04-09 18:38:00 +00:00
parent 5494efa035
commit 90f29198c3

View File

@ -1902,7 +1902,7 @@ vfs_write_suspend(struct mount *mp, int flags)
MNT_IUNLOCK(mp);
if ((error = VFS_SYNC(mp, MNT_SUSPEND)) != 0) {
vfs_write_resume(mp, 0);
vfs_op_exit(mp);
/* vfs_write_resume does vfs_op_exit() for us */
}
return (error);
}