summaryrefslogtreecommitdiffstats
path: root/sys/miscfs/union
diff options
context:
space:
mode:
authorkato <kato@FreeBSD.org>1998-01-22 02:14:59 +0000
committerkato <kato@FreeBSD.org>1998-01-22 02:14:59 +0000
commit37c49e0fb89a886e2dc3fe5a9c3cf2a8402e6d5e (patch)
tree2e559810e47a97508e178a3e19da48a3981c53f8 /sys/miscfs/union
parent7d01b0b30c7983015806a4f5e60d95639469b558 (diff)
downloadFreeBSD-src-37c49e0fb89a886e2dc3fe5a9c3cf2a8402e6d5e.zip
FreeBSD-src-37c49e0fb89a886e2dc3fe5a9c3cf2a8402e6d5e.tar.gz
Delete unused code in union_fsync().
Diffstat (limited to 'sys/miscfs/union')
-rw-r--r--sys/miscfs/union/union_vnops.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/miscfs/union/union_vnops.c b/sys/miscfs/union/union_vnops.c
index d856da2..f0c4a8e 100644
--- a/sys/miscfs/union/union_vnops.c
+++ b/sys/miscfs/union/union_vnops.c
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* @(#)union_vnops.c 8.32 (Berkeley) 6/23/95
- * $Id: union_vnops.c,v 1.48 1998/01/18 08:17:48 kato Exp $
+ * $Id: union_vnops.c,v 1.49 1998/01/20 10:02:54 kato Exp $
*/
#include <sys/param.h>
@@ -1023,7 +1023,6 @@ union_fsync(ap)
struct proc *p = ap->a_p;
struct vnode *targetvp = OTHERVP(ap->a_vp);
struct union_node *un;
- int isupperlocked = 0;
if (targetvp != NULLVP) {
int dolock = (targetvp == LOWERVP(ap->a_vp));
@@ -1046,10 +1045,6 @@ union_fsync(ap)
error = VOP_FSYNC(targetvp, ap->a_cred, ap->a_waitfor, p);
if (dolock)
VOP_UNLOCK(targetvp, 0, p);
- else if (isupperlocked) {
- un->un_flags &= ~UN_ULOCK;
- VOP_UNLOCK(targetvp, 0, p);
- }
}
return (error);
OpenPOWER on IntegriCloud