Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/nfs rename a very confusing variable name.



details:   https://anonhg.NetBSD.org/src/rev/dea958ce4973
branches:  trunk
changeset: 545469:dea958ce4973
user:      yamt <yamt%NetBSD.org@localhost>
date:      Wed Apr 09 14:30:30 2003 +0000

description:
rename a very confusing variable name.
(must_commit -> stalewriteverf)

diffstat:

 sys/nfs/nfs_bio.c   |  18 +++++++++---------
 sys/nfs/nfs_vnops.c |  12 ++++++------
 2 files changed, 15 insertions(+), 15 deletions(-)

diffs (123 lines):

diff -r 805833bd6587 -r dea958ce4973 sys/nfs/nfs_bio.c
--- a/sys/nfs/nfs_bio.c Wed Apr 09 14:27:58 2003 +0000
+++ b/sys/nfs/nfs_bio.c Wed Apr 09 14:30:30 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nfs_bio.c,v 1.88 2003/04/09 14:27:58 yamt Exp $        */
+/*     $NetBSD: nfs_bio.c,v 1.89 2003/04/09 14:30:30 yamt Exp $        */
 
 /*
  * Copyright (c) 1989, 1993
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nfs_bio.c,v 1.88 2003/04/09 14:27:58 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nfs_bio.c,v 1.89 2003/04/09 14:30:30 yamt Exp $");
 
 #include "opt_nfs.h"
 #include "opt_ddb.h"
@@ -520,7 +520,7 @@
        void *win;
        voff_t oldoff, origoff;
        vsize_t bytelen;
-       int error = 0, iomode, must_commit;
+       int error = 0, iomode, stalewriteverf;
        int extended = 0, wrotedta = 0;
 
 #ifdef DIAGNOSTIC
@@ -583,8 +583,8 @@
 
        if ((np->n_flag & NQNFSNONCACHE) && uio->uio_iovcnt == 1) {
                iomode = NFSV3WRITE_FILESYNC;
-               error = nfs_writerpc(vp, uio, &iomode, &must_commit);
-               if (must_commit)
+               error = nfs_writerpc(vp, uio, &iomode, &stalewriteverf);
+               if (stalewriteverf)
                        nfs_clearcommit(vp->v_mount);
                return (error);
        }
@@ -879,7 +879,7 @@
        struct vnode *vp;
        struct nfsnode *np;
        struct nfsmount *nmp;
-       int error = 0, diff, len, iomode, must_commit = 0;
+       int error = 0, diff, len, iomode, stalewriteverf = 0;
        int pushedrange;
        struct uio uio;
        struct iovec io;
@@ -916,7 +916,7 @@
                iomode = NFSV3WRITE_DATASYNC;
                uiop->uio_rw = UIO_WRITE;
                nfsstats.write_physios++;
-               error = nfs_writerpc(vp, uiop, &iomode, &must_commit);
+               error = nfs_writerpc(vp, uiop, &iomode, &stalewriteverf);
            }
            if (error) {
                bp->b_flags |= B_ERROR;
@@ -1073,7 +1073,7 @@
            io.iov_len = uiop->uio_resid = bp->b_bcount;
            uiop->uio_rw = UIO_WRITE;
            nfsstats.write_bios++;
-           error = nfs_writerpc(vp, uiop, &iomode, &must_commit);
+           error = nfs_writerpc(vp, uiop, &iomode, &stalewriteverf);
            if (!error && iomode == NFSV3WRITE_UNSTABLE) {
                lockmgr(&np->n_commitlock, LK_EXCLUSIVE, NULL);
                nfs_add_tobecommitted_range(vp, off, cnt);
@@ -1110,7 +1110,7 @@
            }
        }
        bp->b_resid = uiop->uio_resid;
-       if (must_commit || (error == NFSERR_STALEWRITEVERF)) {
+       if (stalewriteverf || (error == NFSERR_STALEWRITEVERF)) {
                nfs_clearcommit(vp->v_mount);
        }
        biodone(bp);
diff -r 805833bd6587 -r dea958ce4973 sys/nfs/nfs_vnops.c
--- a/sys/nfs/nfs_vnops.c       Wed Apr 09 14:27:58 2003 +0000
+++ b/sys/nfs/nfs_vnops.c       Wed Apr 09 14:30:30 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nfs_vnops.c,v 1.163 2003/04/09 14:22:33 yamt Exp $     */
+/*     $NetBSD: nfs_vnops.c,v 1.164 2003/04/09 14:30:30 yamt Exp $     */
 
 /*
  * Copyright (c) 1989, 1993
@@ -43,7 +43,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nfs_vnops.c,v 1.163 2003/04/09 14:22:33 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nfs_vnops.c,v 1.164 2003/04/09 14:30:30 yamt Exp $");
 
 #include "opt_nfs.h"
 #include "opt_uvmhist.h"
@@ -1196,10 +1196,10 @@
  * nfs write call
  */
 int
-nfs_writerpc(vp, uiop, iomode, must_commit)
+nfs_writerpc(vp, uiop, iomode, stalewriteverf)
        struct vnode *vp;
        struct uio *uiop;
-       int *iomode, *must_commit;
+       int *iomode, *stalewriteverf;
 {
        u_int32_t *tl;
        caddr_t cp;
@@ -1219,7 +1219,7 @@
        if (uiop->uio_iovcnt != 1)
                panic("nfs: writerpc iovcnt > 1");
 #endif
-       *must_commit = 0;
+       *stalewriteverf = 0;
        tsiz = uiop->uio_resid;
        if (uiop->uio_offset + tsiz > nmp->nm_maxfilesize)
                return (EFBIG);
@@ -1290,7 +1290,7 @@
                                    nmp->nm_iflag |= NFSMNT_HASWRITEVERF;
                                } else if (memcmp((caddr_t)tl,
                                    (caddr_t)nmp->nm_writeverf, NFSX_V3WRITEVERF)) {
-                                   *must_commit = 1;
+                                   *stalewriteverf = 1;
                                    memcpy((caddr_t)nmp->nm_writeverf, (caddr_t)tl,
                                        NFSX_V3WRITEVERF);
                                }



Home | Main Index | Thread Index | Old Index