Module Name:    src
Committed By:   andvar
Date:           Fri Jul 16 21:18:41 UTC 2021

Modified Files:
        src/sys/ufs/chfs: chfs_gc.c chfs_scan.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/ufs/chfs/chfs_gc.c \
    src/sys/ufs/chfs/chfs_scan.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/ufs/chfs/chfs_gc.c
diff -u src/sys/ufs/chfs/chfs_gc.c:1.9 src/sys/ufs/chfs/chfs_gc.c:1.10
--- src/sys/ufs/chfs/chfs_gc.c:1.9	Thu Jun  1 02:45:15 2017
+++ src/sys/ufs/chfs/chfs_gc.c	Fri Jul 16 21:18:41 2021
@@ -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 @@ chfs_gc_thread(void *data)
 	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 @@ chfs_gc_thread_start(struct chfs_mount *
 	    "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 @@ chfs_gc_thread_should_wake(struct chfs_m
 		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 @@ chfs_gc_thread_should_wake(struct chfs_m
 		}
 	}
 
-	/* Everythin OK, GC shouldn't run. */
+	/* Everything is OK, GC shouldn't run. */
 	return 0;
 }
 
Index: src/sys/ufs/chfs/chfs_scan.c
diff -u src/sys/ufs/chfs/chfs_scan.c:1.9 src/sys/ufs/chfs/chfs_scan.c:1.10
--- src/sys/ufs/chfs/chfs_scan.c:1.9	Thu Jul 15 22:39:06 2021
+++ src/sys/ufs/chfs/chfs_scan.c	Fri Jul 16 21:18:41 2021
@@ -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 @@ chfs_add_fd_to_list(struct chfs_mount *c
 	    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 */

Reply via email to