Skip to contentSkip to conversation

bcachefs: fix typo in the comment

PATCH New Yan Zhen 1 participant 1 message Sep 10, 2024

lore
Share & tools
lore

Yan Zhen

author
#0 lore raw

PATCH 1/1 bcachefs: fix typo in the comment

Correctly spelled comments make it easier for the reader to understand the code.

Replace 'sentinal' with 'sentinel' in the comment & replace 'sychronizing' with 'synchronizing' in the comment.

---
 fs/bcachefs/alloc_foreground.c | 2 +-
 fs/bcachefs/rebalance.c        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
fs/bcachefs/alloc_foreground.c +1 -1
index bf8fb9cd6..c7a90dc27 100644
@@ -1552,7 +1552,7 @@ void bch2_fs_allocator_foreground_init(struct bch_fs *c)
 	mutex_init(&c->write_points_hash_lock);
 	c->write_points_nr = ARRAY_SIZE(c->write_points);
 
-	/* open bucket 0 is a sentinal NULL: */
+	/* open bucket 0 is a sentinel NULL: */
 	spin_lock_init(&c->open_buckets[0].lock);
 
 	for (ob = c->open_buckets + 1;
fs/bcachefs/rebalance.c +1 -1
index 2d299a37c..27ed8267a 100644
@@ -451,7 +451,7 @@ void bch2_rebalance_stop(struct bch_fs *c)
 	c->rebalance.thread = NULL;
 
 	if (p) {
-		/* for sychronizing with rebalance_wakeup() */
+		/* for synchronizing with rebalance_wakeup() */
 		synchronize_rcu();
 
 		kthread_stop(p);
Signature · 1 line
2.34.1