[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20240910034848.3217867-1-yanzhen@vivo.com>
Date: Tue, 10 Sep 2024 11:48:48 +0800
From: Yan Zhen <yanzhen@...o.com>
To: kent.overstreet@...ux.dev
Cc: linux-bcachefs@...r.kernel.org,
linux-kernel@...r.kernel.org,
opensource.kernel@...o.com,
Yan Zhen <yanzhen@...o.com>
Subject: [PATCH v1] 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.
Signed-off-by: Yan Zhen <yanzhen@...o.com>
---
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
Powered by blists - more mailing lists