Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/chfs Fix incorrect function name, some grammar and t...



details:   https://anonhg.NetBSD.org/src/rev/22fe00baa62f
branches:  trunk
changeset: 1022417:22fe00baa62f
user:      andvar <andvar%NetBSD.org@localhost>
date:      Fri Jul 16 21:18:41 2021 +0000

description:
Fix incorrect function name, some grammar and typos in comments. Remove trailing tab symbol.
No functional change intended.

diffstat:

 sys/ufs/chfs/chfs_gc.c   |  10 +++++-----
 sys/ufs/chfs/chfs_scan.c |   4 ++--
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (63 lines):

diff -r ef8951f2c19f -r 22fe00baa62f sys/ufs/chfs/chfs_gc.c
--- a/sys/ufs/chfs/chfs_gc.c    Fri Jul 16 19:13:21 2021 +0000
+++ b/sys/ufs/chfs/chfs_gc.c    Fri Jul 16 21:18:41 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: chfs_gc.c,v 1.9 2017/06/01 02:45:15 chs Exp $  */
+/*     $NetBSD: chfs_gc.c,v 1.10 2021/07/16 21:18:41 andvar Exp $      */
 
 /*-
  * Copyright (c) 2010 Department of Software Engineering,
@@ -89,7 +89,7 @@
        mutex_enter(&chmp->chm_lock_mountfields);
        while (gc->gcth_running) {
                /* we must call chfs_gc_thread_should_wake with chm_lock_mountfields
-                * held, which is a bit awkwardly done here, but we cant relly
+                * held, which is a bit awkwardly done here, but we can't really
                 * do it otherway with the current design...
                 */
                if (chfs_gc_thread_should_wake(chmp)) {
@@ -127,7 +127,7 @@
            "chfsgcth");
 }
 
-/* chfs_gc_thread_start - stops GC */
+/* chfs_gc_thread_stop - stops GC */
 void
 chfs_gc_thread_stop(struct chfs_mount *chmp)
 {
@@ -191,7 +191,7 @@
                return 1;
        }
 
-       /* There is too much very dirty blocks. */
+       /* There are too much very dirty blocks. */
        TAILQ_FOREACH(cheb, &chmp->chm_very_dirty_queue, queue) {
                nr_very_dirty++;
                if (nr_very_dirty == chmp->chm_vdirty_blocks_gctrigger) {
@@ -200,7 +200,7 @@
                }
        }
 
-       /* Everythin OK, GC shouldn't run. */
+       /* Everything is OK, GC shouldn't run. */
        return 0;
 }
 
diff -r ef8951f2c19f -r 22fe00baa62f sys/ufs/chfs/chfs_scan.c
--- a/sys/ufs/chfs/chfs_scan.c  Fri Jul 16 19:13:21 2021 +0000
+++ b/sys/ufs/chfs/chfs_scan.c  Fri Jul 16 21:18:41 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: chfs_scan.c,v 1.9 2021/07/15 22:39:06 andvar Exp $     */
+/*     $NetBSD: chfs_scan.c,v 1.10 2021/07/16 21:18:41 andvar Exp $    */
 
 /*-
  * Copyright (c) 2010 Department of Software Engineering,
@@ -225,7 +225,7 @@
            new->nsize);
        cheb = &chmp->chm_blocks[new->nref->nref_lnr];
 
-       mutex_enter(&chmp->chm_lock_sizes);     
+       mutex_enter(&chmp->chm_lock_sizes);
        TAILQ_FOREACH_SAFE(fd, &pvc->scan_dirents, fds, tmpfd) {
                if (fd->nhash > new->nhash) {
                        /* insert new before fd */



Home | Main Index | Thread Index | Old Index