[PATCH v1] bcachefs: fix typo in the comment

From: Yan Zhen
Date: Mon Sep 09 2024 - 23:49:32 EST


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.

Signed-off-by: Yan Zhen <yanzhen@xxxxxxxx>
---
fs/bcachefs/alloc_foreground.c | 2 +-
fs/bcachefs/rebalance.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/bcachefs/alloc_foreground.c b/fs/bcachefs/alloc_foreground.c
index bf8fb9cd6..c7a90dc27 100644
--- a/fs/bcachefs/alloc_foreground.c
+++ b/fs/bcachefs/alloc_foreground.c
@@ -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;
diff --git a/fs/bcachefs/rebalance.c b/fs/bcachefs/rebalance.c
index 2d299a37c..27ed8267a 100644
--- a/fs/bcachefs/rebalance.c
+++ b/fs/bcachefs/rebalance.c
@@ -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);
--
2.34.1