afs: Return raw code from background daemons
[openafs.git] / src / afs / IRIX / osi_vnodeops.c
index 987cfc9..c55474a 100644 (file)
@@ -52,7 +52,7 @@ extern void afs_rwunlock(OSI_VN_DECL(vp), AFS_RWLOCK_T b);
 
 extern int afs_fid2();
 
-static int afsrwvp(register struct vcache *avc, register struct uio *uio,
+static int afsrwvp(struct vcache *avc, struct uio *uio,
                   enum uio_rw rw, int ioflag,
 #ifdef AFS_SGI64_ENV
                   struct cred *cr, struct flid *flp);
@@ -341,7 +341,7 @@ static int acchk = 0;
 static int acdrop = 0;
 
 static int
-afsrwvp(register struct vcache *avc, register struct uio *uio, enum uio_rw rw,
+afsrwvp(struct vcache *avc, struct uio *uio, enum uio_rw rw,
        int ioflag,
 #ifdef AFS_SGI64_ENV
        struct cred *cr, struct flid *flp)
@@ -349,7 +349,7 @@ afsrwvp(register struct vcache *avc, register struct uio *uio, enum uio_rw rw,
        struct cred *cr)
 #endif
 {
-    register struct vnode *vp = AFSTOV(avc);
+    struct vnode *vp = AFSTOV(avc);
     struct buf *bp;
     daddr_t bn;
     off_t acnt, cnt;
@@ -846,7 +846,7 @@ OSI_VC_DECL(avc);
 
     if (bp->b_flags & B_READ) {
        uio->uio_fmode = FREAD;
-       error = afs_read(vp, uio, cr, 0, 0, 0);
+       error = afs_read(vp, uio, cr, 0);
     } else {
        uio->uio_fmode = FWRITE;
        error = afs_write(vp, uio, 0, cr, 0);
@@ -927,7 +927,7 @@ OSI_VC_DECL(avc);
 {
     OSI_VC_CONVERT(avc);
     struct vnode *vp = AFSTOV(avc);
-    register struct brequest *tb;
+    struct brequest *tb;
     struct vrequest treq;
     afs_int32 code;
 
@@ -976,13 +976,13 @@ OSI_VC_DECL(avc);
            /* at least one daemon is idle, so ask it to do the store.
             * Also, note that  we don't lock it any more... */
            tb = afs_BQueue(BOP_STORE, avc, 0, 1, acred,
-                           (afs_size_t) afs_cr_uid(acred), 0L, (void *)0);
+                           (afs_size_t) afs_cr_uid(acred), 0L, (void *)0,
+                           (void *)0, (void *)0);
            /* sleep waiting for the store to start, then retrieve error code */
            while ((tb->flags & BUVALID) == 0) {
                tb->flags |= BUWAIT;
                afs_osi_Sleep(tb);
            }
-           code = tb->code;
            afs_BRelease(tb);
        }
     } else {