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:
parent
5494efa035
commit
90f29198c3
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user