diff options
| author | pooka <pooka@NetBSD.org> | 2008-12-31 00:35:00 +0000 |
|---|---|---|
| committer | pooka <pooka@NetBSD.org> | 2008-12-31 00:35:00 +0000 |
| commit | e605194acefea371cfcb766fbe2e4c3a42d5818a (patch) | |
| tree | b998efe84e882bc545d50ac7b52f084969db497d /lib | |
| parent | 1d6d3e27694e04ff7f6a07a03f0415b77f9a28f1 (diff) | |
Nuke macros which haven't been used since the advent of RUMP_VOPs.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libukfs/ukfs.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/libukfs/ukfs.c b/lib/libukfs/ukfs.c index 0778c61c57a..bc1640a0dcf 100644 --- a/lib/libukfs/ukfs.c +++ b/lib/libukfs/ukfs.c @@ -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); |
