Source-Changes-HG archive

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

[src/trunk]: src/sys/fs/puffs Rename PUFFS_SOPREQ_EXIT to PUFFS_SOPREQSYS_EXI...



details:   https://anonhg.NetBSD.org/src/rev/12387d5c1ffb
branches:  trunk
changeset: 750602:12387d5c1ffb
user:      pooka <pooka%NetBSD.org@localhost>
date:      Thu Jan 07 23:02:34 2010 +0000

description:
Rename PUFFS_SOPREQ_EXIT to PUFFS_SOPREQSYS_EXIT to better signal
it comes from within the kernel instead of as a direct result of
a user request.

no functional change

diffstat:

 sys/fs/puffs/puffs_msgif.c  |  6 +++---
 sys/fs/puffs/puffs_sys.h    |  4 ++--
 sys/fs/puffs/puffs_vfsops.c |  6 +++---
 3 files changed, 8 insertions(+), 8 deletions(-)

diffs (72 lines):

diff -r 639b07890c3e -r 12387d5c1ffb sys/fs/puffs/puffs_msgif.c
--- a/sys/fs/puffs/puffs_msgif.c        Thu Jan 07 22:59:27 2010 +0000
+++ b/sys/fs/puffs/puffs_msgif.c        Thu Jan 07 23:02:34 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: puffs_msgif.c,v 1.78 2010/01/07 22:59:27 pooka Exp $   */
+/*     $NetBSD: puffs_msgif.c,v 1.79 2010/01/07 23:02:34 pooka Exp $   */
 
 /*
  * Copyright (c) 2005, 2006, 2007  Antti Kantee.  All Rights Reserved.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: puffs_msgif.c,v 1.78 2010/01/07 22:59:27 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: puffs_msgif.c,v 1.79 2010/01/07 23:02:34 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -928,7 +928,7 @@
                mutex_exit(&pmp->pmp_sopmtx);
 
                switch (psopr->psopr_sopreq) {
-               case PUFFS_SOPREQ_EXIT:
+               case PUFFS_SOPREQSYS_EXIT:
                        keeprunning = false;
                        break;
                case PUFFS_SOPREQ_FLUSH:
diff -r 639b07890c3e -r 12387d5c1ffb sys/fs/puffs/puffs_sys.h
--- a/sys/fs/puffs/puffs_sys.h  Thu Jan 07 22:59:27 2010 +0000
+++ b/sys/fs/puffs/puffs_sys.h  Thu Jan 07 23:02:34 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: puffs_sys.h,v 1.74 2010/01/07 22:45:31 pooka Exp $     */
+/*     $NetBSD: puffs_sys.h,v 1.75 2010/01/07 23:02:34 pooka Exp $     */
 
 /*
  * Copyright (c) 2005, 2006  Antti Kantee.  All Rights Reserved.
@@ -99,7 +99,7 @@
 };
 
 enum puffs_sopreqtype {
-       PUFFS_SOPREQ_EXIT,
+       PUFFS_SOPREQSYS_EXIT,
        PUFFS_SOPREQ_FLUSH,
        PUFFS_SOPREQ_UNMOUNT,
 };
diff -r 639b07890c3e -r 12387d5c1ffb sys/fs/puffs/puffs_vfsops.c
--- a/sys/fs/puffs/puffs_vfsops.c       Thu Jan 07 22:59:27 2010 +0000
+++ b/sys/fs/puffs/puffs_vfsops.c       Thu Jan 07 23:02:34 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: puffs_vfsops.c,v 1.84 2009/12/07 20:57:55 pooka Exp $  */
+/*     $NetBSD: puffs_vfsops.c,v 1.85 2010/01/07 23:02:34 pooka Exp $  */
 
 /*
  * Copyright (c) 2005, 2006  Antti Kantee.  All Rights Reserved.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: puffs_vfsops.c,v 1.84 2009/12/07 20:57:55 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: puffs_vfsops.c,v 1.85 2010/01/07 23:02:34 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/mount.h>
@@ -370,7 +370,7 @@
                 * it would be wanting to lock.
                 */
                psopr = kmem_alloc(sizeof(*psopr), KM_SLEEP);
-               psopr->psopr_sopreq = PUFFS_SOPREQ_EXIT;
+               psopr->psopr_sopreq = PUFFS_SOPREQSYS_EXIT;
                mutex_enter(&pmp->pmp_sopmtx);
                TAILQ_INSERT_TAIL(&pmp->pmp_sopreqs, psopr, psopr_entries);
                cv_signal(&pmp->pmp_sopcv);



Home | Main Index | Thread Index | Old Index