remove unused code
This commit is contained in:
parent
6069744732
commit
ba0dd1c1e6
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ntfs_vfsops.c,v 1.88 2013/09/30 18:58:00 hannken Exp $ */
|
||||
/* $NetBSD: ntfs_vfsops.c,v 1.89 2013/10/17 21:04:12 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 1999 Semen Ustimenko
|
||||
|
@ -29,7 +29,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ntfs_vfsops.c,v 1.88 2013/09/30 18:58:00 hannken Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ntfs_vfsops.c,v 1.89 2013/10/17 21:04:12 christos Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -307,7 +307,7 @@ ntfs_mountfs(struct vnode *devvp, struct mount *mp, struct ntfs_args *argsp, str
|
|||
struct buf *bp;
|
||||
struct ntfsmount *ntmp;
|
||||
dev_t dev = devvp->v_rdev;
|
||||
int error, ronly, i;
|
||||
int error, i;
|
||||
struct vnode *vp;
|
||||
|
||||
ntmp = NULL;
|
||||
|
@ -321,8 +321,6 @@ ntfs_mountfs(struct vnode *devvp, struct mount *mp, struct ntfs_args *argsp, str
|
|||
if (error)
|
||||
return (error);
|
||||
|
||||
ronly = (mp->mnt_flag & MNT_RDONLY) != 0;
|
||||
|
||||
bp = NULL;
|
||||
|
||||
error = bread(devvp, BBLOCK, BBSIZE, NOCRED, 0, &bp);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: union_subr.c,v 1.56 2012/11/05 17:24:11 dholland Exp $ */
|
||||
/* $NetBSD: union_subr.c,v 1.57 2013/10/17 21:03:50 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994
|
||||
|
@ -72,7 +72,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: union_subr.c,v 1.56 2012/11/05 17:24:11 dholland Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: union_subr.c,v 1.57 2013/10/17 21:03:50 christos Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -598,11 +598,8 @@ found:
|
|||
int
|
||||
union_freevp(struct vnode *vp)
|
||||
{
|
||||
int hash;
|
||||
struct union_node *un = VTOUNION(vp);
|
||||
|
||||
hash = UNION_HASH(un->un_uppervp, un->un_lowervp);
|
||||
|
||||
mutex_enter(&uhash_lock);
|
||||
if (un->un_cflags & UN_CACHED) {
|
||||
un->un_cflags &= ~UN_CACHED;
|
||||
|
@ -961,7 +958,6 @@ void
|
|||
union_removed_upper(struct union_node *un)
|
||||
{
|
||||
struct vnode *vp = UNIONTOV(un);
|
||||
int hash;
|
||||
|
||||
vn_lock(vp, LK_EXCLUSIVE | LK_RETRY);
|
||||
#if 1
|
||||
|
@ -979,7 +975,6 @@ union_removed_upper(struct union_node *un)
|
|||
union_newupper(un, NULLVP);
|
||||
#endif
|
||||
|
||||
hash = UNION_HASH(un->un_uppervp, un->un_lowervp);
|
||||
VOP_UNLOCK(vp);
|
||||
|
||||
mutex_enter(&uhash_lock);
|
||||
|
|
Loading…
Reference in New Issue