diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2004-05-31 20:56:10 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2004-05-31 20:56:10 +0000 |
| commit | e79962dbce6bf0d04c9b40b29cdb50e57232220c (patch) | |
| tree | d955d892da2337029c19970b258c48d46bf1ea8b | |
| parent | e5572b4b7c769a4bb37a8962d71b9954be93e1a7 (diff) | |
Notes
| -rw-r--r-- | sys/kern/vfs_vnops.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c index 18dc3ff25606..1e9d3bbda9d6 100644 --- a/sys/kern/vfs_vnops.c +++ b/sys/kern/vfs_vnops.c @@ -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--; |
