mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-02 04:13:39 +00:00
vnode_pager_alloc() never returns NULL, so don't check for it.
This commit is contained in:
parent
b367ddb191
commit
24aa09cd4f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=9588
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)vfs_vnops.c 8.2 (Berkeley) 1/21/94
|
||||
* $Id: vfs_vnops.c,v 1.15 1995/07/13 08:47:44 davidg Exp $
|
||||
* $Id: vfs_vnops.c,v 1.16 1995/07/16 10:12:30 bde Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -159,8 +159,7 @@ retry:
|
||||
error = VOP_GETATTR(vp, vap, cred, p);
|
||||
if (error)
|
||||
goto bad;
|
||||
if (vnode_pager_alloc(vp, vap->va_size, 0, 0) == NULL)
|
||||
panic("vn_open: failed to allocate object");
|
||||
(void) vnode_pager_alloc(vp, vap->va_size, 0, 0);
|
||||
vp->v_flag |= VVMIO;
|
||||
} else {
|
||||
vm_object_t object;
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfs_subs.c 8.3 (Berkeley) 1/4/94
|
||||
* $Id: nfs_subs.c,v 1.19 1995/07/09 06:57:59 davidg Exp $
|
||||
* $Id: nfs_subs.c,v 1.20 1995/07/13 08:47:53 davidg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -1909,8 +1909,7 @@ retry:
|
||||
if (VOP_GETATTR(vp, &vat, p->p_ucred, p) != 0)
|
||||
panic("nfsrv_vmio: VOP_GETATTR failed");
|
||||
|
||||
if (vnode_pager_alloc(vp, vat.va_size, 0, 0) == NULL)
|
||||
panic("nfsrv_vmio: vnode_pager_alloc failed");
|
||||
(void) vnode_pager_alloc(vp, vat.va_size, 0, 0);
|
||||
|
||||
vp->v_flag |= VVMIO;
|
||||
} else {
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfs_subs.c 8.3 (Berkeley) 1/4/94
|
||||
* $Id: nfs_subs.c,v 1.19 1995/07/09 06:57:59 davidg Exp $
|
||||
* $Id: nfs_subs.c,v 1.20 1995/07/13 08:47:53 davidg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -1909,8 +1909,7 @@ retry:
|
||||
if (VOP_GETATTR(vp, &vat, p->p_ucred, p) != 0)
|
||||
panic("nfsrv_vmio: VOP_GETATTR failed");
|
||||
|
||||
if (vnode_pager_alloc(vp, vat.va_size, 0, 0) == NULL)
|
||||
panic("nfsrv_vmio: vnode_pager_alloc failed");
|
||||
(void) vnode_pager_alloc(vp, vat.va_size, 0, 0);
|
||||
|
||||
vp->v_flag |= VVMIO;
|
||||
} else {
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfs_subs.c 8.3 (Berkeley) 1/4/94
|
||||
* $Id: nfs_subs.c,v 1.19 1995/07/09 06:57:59 davidg Exp $
|
||||
* $Id: nfs_subs.c,v 1.20 1995/07/13 08:47:53 davidg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -1909,8 +1909,7 @@ retry:
|
||||
if (VOP_GETATTR(vp, &vat, p->p_ucred, p) != 0)
|
||||
panic("nfsrv_vmio: VOP_GETATTR failed");
|
||||
|
||||
if (vnode_pager_alloc(vp, vat.va_size, 0, 0) == NULL)
|
||||
panic("nfsrv_vmio: vnode_pager_alloc failed");
|
||||
(void) vnode_pager_alloc(vp, vat.va_size, 0, 0);
|
||||
|
||||
vp->v_flag |= VVMIO;
|
||||
} else {
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfs_subs.c 8.3 (Berkeley) 1/4/94
|
||||
* $Id: nfs_subs.c,v 1.19 1995/07/09 06:57:59 davidg Exp $
|
||||
* $Id: nfs_subs.c,v 1.20 1995/07/13 08:47:53 davidg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -1909,8 +1909,7 @@ retry:
|
||||
if (VOP_GETATTR(vp, &vat, p->p_ucred, p) != 0)
|
||||
panic("nfsrv_vmio: VOP_GETATTR failed");
|
||||
|
||||
if (vnode_pager_alloc(vp, vat.va_size, 0, 0) == NULL)
|
||||
panic("nfsrv_vmio: vnode_pager_alloc failed");
|
||||
(void) vnode_pager_alloc(vp, vat.va_size, 0, 0);
|
||||
|
||||
vp->v_flag |= VVMIO;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user