diff options
| author | John Dyson <dyson@FreeBSD.org> | 1996-03-19 05:13:22 +0000 |
|---|---|---|
| committer | John Dyson <dyson@FreeBSD.org> | 1996-03-19 05:13:22 +0000 |
| commit | ad5dd2341c0ff5e5a092ae21b2c275a0608fc701 (patch) | |
| tree | 8061bebe5a673fb545013ff249887aadb288d51e /sys/fs | |
| parent | f440f5788c89949b71cf2ead051b2b5475660e16 (diff) | |
Notes
Diffstat (limited to 'sys/fs')
| -rw-r--r-- | sys/fs/specfs/spec_vnops.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/fs/specfs/spec_vnops.c b/sys/fs/specfs/spec_vnops.c index 180be5f6a69d..2dd6859cdc8e 100644 --- a/sys/fs/specfs/spec_vnops.c +++ b/sys/fs/specfs/spec_vnops.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)spec_vnops.c 8.6 (Berkeley) 4/9/94 - * $Id: spec_vnops.c,v 1.27 1996/01/01 20:20:45 phk Exp $ + * $Id: spec_vnops.c,v 1.28 1996/03/09 07:02:52 dyson Exp $ */ #include <sys/param.h> @@ -625,7 +625,8 @@ spec_close(ap) * sum of the reference counts on all the aliased * vnodes descends to one, we are on last close. */ - if (vcount(vp) > 1 && (vp->v_flag & VXLOCK) == 0) + if ((vcount(vp) > ((vp->v_flag & VVMIO)?2:1)) && + (vp->v_flag & VXLOCK) == 0) return (0); devclose = bdevsw[major(dev)]->d_close; mode = S_IFBLK; |
