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"
16 #include "afs/sysincludes.h" /* Standard vendor system headers */
17 #include "afsincludes.h" /* Afs-based standard headers */
18 #include "afs/afs_stats.h" /* statistics */
21 afs_vrdwr(struct usr_vnode *avc, struct usr_uio *uio, int rw, int io,
22 struct usr_ucred *cred)
26 if (rw == UIO_WRITE) {
27 rc = afs_write(avc, uio, io, cred, 0);
29 rc = afs_read(avc, uio, cred, 0, 0, 0);
36 afs_inactive(struct vcache *avc, struct AFS_UCRED *acred)
38 struct vnode *vp = AFSTOV(avc);
42 usr_assert(avc->vrefCount == 0);
43 afs_InactiveVCache(avc, acred);
46 struct usr_vnodeops Afs_vnodeops = {
50 afs_badop, /* ioctl */
51 afs_noop, /* select */
68 afs_badop, /* strategy */
69 afs_badop, /* bread */
70 afs_badop, /* brelse */
75 struct usr_vnodeops *afs_ops = &Afs_vnodeops;