Module Name: src
Committed By: manu
Date: Tue Nov 4 09:17:32 UTC 2014
Modified Files:
src/lib/libperfuse: ops.c
Log Message:
Restore build with -DDEBUG, and avoid a spurious diagnostic error with -DDEBUG
To generate a diff of this commit:
cvs rdiff -u -r1.79 -r1.80 src/lib/libperfuse/ops.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libperfuse/ops.c
diff -u src/lib/libperfuse/ops.c:1.79 src/lib/libperfuse/ops.c:1.80
--- src/lib/libperfuse/ops.c:1.79 Fri Oct 31 15:20:08 2014
+++ src/lib/libperfuse/ops.c Tue Nov 4 09:17:31 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: ops.c,v 1.79 2014/10/31 15:20:08 manu Exp $ */
+/* $NetBSD: ops.c,v 1.80 2014/11/04 09:17:31 manu Exp $ */
/*-
* Copyright (c) 2010-2011 Emmanuel Dreyfus. All rights reserved.
@@ -813,11 +813,6 @@ requeue_request(struct puffs_usermount *
{
struct perfuse_cc_queue pcq;
struct perfuse_node_data *pnd;
-#ifdef PERFUSE_DEBUG
- struct perfuse_state *ps;
-
- ps = perfuse_getspecific(pu);
-#endif
pnd = PERFUSE_NODE_DATA(opc);
pcq.pcq_type = type;
@@ -2821,11 +2816,11 @@ perfuse_node_inactive(struct puffs_userm
if (opc == 0)
return 0;
- node_ref(opc);
pnd = PERFUSE_NODE_DATA(opc);
-
if (!(pnd->pnd_flags & (PND_OPEN|PND_REMOVED)))
- goto out;
+ return 0;
+
+ node_ref(opc);
/*
* Make sure all operation are finished