Nuke RUMPCN_HASNTBUF. The inspiration behind it must've been ... deep.
This commit is contained in:
parent
159e5816d2
commit
b142e2e100
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: rump.h,v 1.16 2009/05/03 17:09:49 pooka Exp $ */
|
||||
/* $NetBSD: rump.h,v 1.17 2009/05/04 14:31:25 pooka Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Antti Kantee. All Rights Reserved.
|
||||
|
@ -84,7 +84,6 @@ struct componentname *rump_makecn(u_long, u_long, const char *, size_t,
|
|||
void rump_freecn(struct componentname *, int);
|
||||
#define RUMPCN_ISLOOKUP 0x01
|
||||
#define RUMPCN_FREECRED 0x02
|
||||
#define RUMPCN_HASNTBUF 0x04
|
||||
int rump_namei(uint32_t, uint32_t, const char *,
|
||||
struct vnode **, struct vnode **,
|
||||
struct componentname **);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: rump_vfs.c,v 1.20 2009/05/03 17:09:49 pooka Exp $ */
|
||||
/* $NetBSD: rump_vfs.c,v 1.21 2009/05/04 14:31:25 pooka Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2008 Antti Kantee. All Rights Reserved.
|
||||
|
@ -218,13 +218,11 @@ rump_freecn(struct componentname *cnp, int flags)
|
|||
if (flags & RUMPCN_FREECRED)
|
||||
rump_cred_put(cnp->cn_cred);
|
||||
|
||||
if ((flags & RUMPCN_HASNTBUF) == 0) {
|
||||
if (cnp->cn_flags & SAVENAME) {
|
||||
if (flags & RUMPCN_ISLOOKUP ||cnp->cn_flags & SAVESTART)
|
||||
PNBUF_PUT(cnp->cn_pnbuf);
|
||||
} else {
|
||||
if (cnp->cn_flags & SAVENAME) {
|
||||
if (flags & RUMPCN_ISLOOKUP || cnp->cn_flags & SAVESTART)
|
||||
PNBUF_PUT(cnp->cn_pnbuf);
|
||||
}
|
||||
} else {
|
||||
PNBUF_PUT(cnp->cn_pnbuf);
|
||||
}
|
||||
kmem_free(cnp, sizeof(*cnp));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue