Removed unnecessary call to vnode_pager_uncache(). We automatically clear
the VTEXT flag after all mappers have finished with the object.
This commit is contained in:
parent
475239d0d8
commit
50475e8bd3
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)vfs_vnops.c 8.2 (Berkeley) 1/21/94
|
||||
* $Id: vfs_vnops.c,v 1.7 1995/01/09 16:04:55 davidg Exp $
|
||||
* $Id: vfs_vnops.c,v 1.8 1995/02/14 06:31:13 phk Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -217,7 +217,7 @@ vn_writechk(vp)
|
||||
* the vnode, try to free it up once. If
|
||||
* we fail, we can't allow writing.
|
||||
*/
|
||||
if ((vp->v_flag & VTEXT) && !vnode_pager_uncache(vp))
|
||||
if (vp->v_flag & VTEXT)
|
||||
return (ETXTBSY);
|
||||
return (0);
|
||||
}
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfs_serv.c 8.3 (Berkeley) 1/12/94
|
||||
* $Id: nfs_serv.c,v 1.10 1995/02/15 03:38:12 davidg Exp $
|
||||
* $Id: nfs_serv.c,v 1.11 1995/03/17 07:45:19 davidg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -1978,10 +1978,9 @@ nfsrv_access(vp, flags, cred, rdonly, p)
|
||||
}
|
||||
/*
|
||||
* If there's shared text associated with
|
||||
* the inode, try to free it up once. If
|
||||
* we fail, we can't allow writing.
|
||||
* the inode, we can't allow writing.
|
||||
*/
|
||||
if ((vp->v_flag & VTEXT) && !vnode_pager_uncache(vp))
|
||||
if (vp->v_flag & VTEXT)
|
||||
return (ETXTBSY);
|
||||
}
|
||||
error = VOP_GETATTR(vp, &vattr, cred, p);
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfs_serv.c 8.3 (Berkeley) 1/12/94
|
||||
* $Id: nfs_serv.c,v 1.10 1995/02/15 03:38:12 davidg Exp $
|
||||
* $Id: nfs_serv.c,v 1.11 1995/03/17 07:45:19 davidg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -1978,10 +1978,9 @@ nfsrv_access(vp, flags, cred, rdonly, p)
|
||||
}
|
||||
/*
|
||||
* If there's shared text associated with
|
||||
* the inode, try to free it up once. If
|
||||
* we fail, we can't allow writing.
|
||||
* the inode, we can't allow writing.
|
||||
*/
|
||||
if ((vp->v_flag & VTEXT) && !vnode_pager_uncache(vp))
|
||||
if (vp->v_flag & VTEXT)
|
||||
return (ETXTBSY);
|
||||
}
|
||||
error = VOP_GETATTR(vp, &vattr, cred, p);
|
||||
|
Loading…
x
Reference in New Issue
Block a user