From 297e393f265188c4db45dc8357927b764ef8faff Mon Sep 17 00:00:00 2001 From: dholland Date: Tue, 30 Nov 2010 10:49:22 +0000 Subject: [PATCH] SAVENAME and HASBUF namei flags have been removed; update accordingly. (pooka@ says not to worry about compat.) --- lib/libp2k/p2k.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/libp2k/p2k.c b/lib/libp2k/p2k.c index 7005e8c958e2..621f473103df 100644 --- a/lib/libp2k/p2k.c +++ b/lib/libp2k/p2k.c @@ -1,4 +1,4 @@ -/* $NetBSD: p2k.c,v 1.45 2010/11/26 11:12:06 pooka Exp $ */ +/* $NetBSD: p2k.c,v 1.46 2010/11/30 10:49:22 dholland Exp $ */ /* * Copyright (c) 2007, 2008, 2009 Antti Kantee. All Rights Reserved. @@ -696,17 +696,17 @@ p2k_node_lookup(struct puffs_usermount *pu, puffs_cookie_t opc, if (pcn->pcn_flags & RUMP_NAMEI_SAVESTART) { if (p2n_dir->p2n_cn_ren_src) freecn(p2n_dir->p2n_cn_ren_src, - RUMPCN_FORCEFREE); + 0); p2n_dir->p2n_cn_ren_src = cn; } else { - freecn(cn, RUMPCN_FORCEFREE); + freecn(cn, 0); cn = NULL; } } else { assert(pcn->pcn_nameiop == RUMP_NAMEI_RENAME); if (p2n_dir->p2n_cn_ren_targ) freecn(p2n_dir->p2n_cn_ren_targ, - RUMPCN_FORCEFREE); + 0); p2n_dir->p2n_cn_ren_targ = cn; } } else { @@ -803,7 +803,7 @@ do_makenode(struct puffs_usermount *pu, struct p2k_node *p2n_dir, cn = p2n_dir->p2n_cn; p2n_dir->p2n_cn = NULL; } else { - cn = makecn(pcn, RUMP_NAMEI_HASBUF); + cn = makecn(pcn, 0); } RUMP_VOP_LOCK(dvp, LK_EXCLUSIVE); @@ -1032,11 +1032,11 @@ p2k_node_abortop(struct puffs_usermount *pu, puffs_cookie_t opc, p2n_dir->p2n_cn = NULL; } if ((cnp = p2n_dir->p2n_cn_ren_src) != NULL) { - freecn(cnp, RUMPCN_FORCEFREE); + freecn(cnp, 0); p2n_dir->p2n_cn_ren_src = NULL; } if ((cnp = p2n_dir->p2n_cn_ren_targ) != NULL) { - freecn(cnp, RUMPCN_FORCEFREE); + freecn(cnp, 0); p2n_dir->p2n_cn_ren_targ = NULL; } @@ -1056,7 +1056,7 @@ do_nukenode(struct p2k_node *p2n_dir, struct p2k_node *p2n, cn = p2n_dir->p2n_cn; p2n_dir->p2n_cn = NULL; } else { - cn = makecn(pcn, RUMP_NAMEI_HASBUF); + cn = makecn(pcn, 0); } RUMP_VOP_LOCK(dvp, LK_EXCLUSIVE); @@ -1095,7 +1095,7 @@ p2k_node_link(struct puffs_usermount *pu, puffs_cookie_t opc, cn = p2n_dir->p2n_cn; p2n_dir->p2n_cn = NULL; } else { - cn = makecn(pcn, RUMP_NAMEI_HASBUF); + cn = makecn(pcn, 0); } RUMP_VOP_LOCK(dvp, LK_EXCLUSIVE); @@ -1123,14 +1123,14 @@ p2k_node_rename(struct puffs_usermount *pu, cn_src = p2n_srcdir->p2n_cn_ren_src; p2n_srcdir->p2n_cn_ren_src = NULL; } else { - cn_src = makecn(pcn_src, RUMP_NAMEI_HASBUF); + cn_src = makecn(pcn_src, 0); } if (p2n_targdir->p2n_cn_ren_targ) { cn_targ = p2n_targdir->p2n_cn_ren_targ; p2n_targdir->p2n_cn_ren_targ = NULL; } else { - cn_targ = makecn(pcn_targ, RUMP_NAMEI_HASBUF); + cn_targ = makecn(pcn_targ, 0); } dvp = OPC2VP(src_dir); @@ -1153,8 +1153,8 @@ p2k_node_rename(struct puffs_usermount *pu, if (tvp) { assert(RUMP_VOP_ISLOCKED(tvp) == 0); } - freecn(cn_src, RUMPCN_FORCEFREE); - freecn(cn_targ, RUMPCN_FORCEFREE); + freecn(cn_src, 0); + freecn(cn_targ, 0); return rv; }