Nuke macros which haven't been used since the advent of RUMP_VOPs.
This commit is contained in:
parent
1d6d3e2769
commit
e605194ace
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ukfs.c,v 1.16 2008/12/30 10:31:22 stacktic Exp $ */
|
||||
/* $NetBSD: ukfs.c,v 1.17 2008/12/31 00:35:00 pooka Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007, 2008 Antti Kantee. All Rights Reserved.
|
||||
@ -263,12 +263,6 @@ ukfs_release(struct ukfs *fs, int flags)
|
||||
free(fs);
|
||||
}
|
||||
|
||||
/* don't need vn_lock(), since we don't have VXLOCK */
|
||||
#define VLE(a) RUMP_VOP_LOCK(a, RUMP_LK_EXCLUSIVE)
|
||||
#define VLS(a) RUMP_VOP_LOCK(a, RUMP_LK_SHARED)
|
||||
#define VUL(a) RUMP_VOP_UNLOCK(a, 0)
|
||||
#define AUL(a) assert(RUMP_VOP_ISLOCKED(a) == 0)
|
||||
|
||||
#define STDCALL(ukfs, thecall) \
|
||||
int rv = 0; \
|
||||
\
|
||||
@ -302,7 +296,7 @@ ukfs_getdents(struct ukfs *ukfs, const char *dirname, off_t *off,
|
||||
cred = rump_cred_suserget();
|
||||
rv = RUMP_VOP_READDIR(vp, uio, cred, &eofflag, NULL, NULL);
|
||||
rump_cred_suserput(cred);
|
||||
VUL(vp);
|
||||
RUMP_VOP_UNLOCK(vp, 0);
|
||||
*off = rump_uio_getoff(uio);
|
||||
resid = rump_uio_free(uio);
|
||||
rump_vp_rele(vp);
|
||||
|
Loading…
x
Reference in New Issue
Block a user