Nuke RUMPCN_HASNTBUF. The inspiration behind it must've been ... deep.

This commit is contained in:
pooka 2009-05-04 14:31:25 +00:00
parent 159e5816d2
commit b142e2e100
2 changed files with 6 additions and 9 deletions

View File

@ -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 **);

View File

@ -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));
}