2 * Copyright 2000, International Business Machines Corporation and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
10 #include <afsconfig.h>
11 #include "afs/param.h"
14 #include "afs/sysincludes.h" /* Standard vendor system headers */
15 #include "afsincludes.h" /* Afs-based standard headers */
16 #include "afs/afs_stats.h" /* statistics */
19 afs_vrdwr(struct usr_vnode *avc, struct usr_uio *uio, int rw, int io,
20 struct usr_ucred *cred)
24 if (rw == UIO_WRITE) {
25 rc = afs_write(VTOAFS(avc), uio, io, cred, 0);
27 rc = afs_read(VTOAFS(avc), uio, cred, 0, 0, 0);
34 afs_inactive(struct vcache *avc, afs_ucred_t *acred)
39 usr_assert(avc->vrefCount == 0);
40 afs_InactiveVCache(avc, acred);
45 struct usr_vnodeops Afs_vnodeops = {
49 afs_badop, /* ioctl */
50 afs_noop, /* select */
67 afs_badop, /* strategy */
68 afs_badop, /* bread */
69 afs_badop, /* brelse */
74 struct usr_vnodeops *afs_ops = &Afs_vnodeops;