Assert Giant in vn_start_write() and vn_finished_write().

This commit is contained in:
Robert Watson 2004-05-31 20:56:10 +00:00
parent e5572b4b7c
commit e79962dbce

View File

@ -929,6 +929,8 @@ vn_start_write(vp, mpp, flags)
struct mount *mp;
int error;
GIANT_REQUIRED;
/*
* If a vnode is provided, get and return the mount point that
* to which it will write.
@ -1007,6 +1009,8 @@ vn_finished_write(mp)
struct mount *mp;
{
GIANT_REQUIRED;
if (mp == NULL)
return;
mp->mnt_writeopcount--;