[PATCH] gfs2: fix typos in comments

Hemanth Selam posted 1 patch 3 weeks ago
fs/gfs2/bmap.c     | 2 +-
fs/gfs2/lock_dlm.c | 4 ++--
fs/gfs2/recovery.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
[PATCH] gfs2: fix typos in comments
Posted by Hemanth Selam 3 weeks ago
Fix typos in comments, reported by scripts/checkpatch.pl using the
misspelling list in scripts/spelling.txt.  Only touches comments, no code
changes.

Assisted-by: Cursor:claude-opus-5
Signed-off-by: Hemanth Selam <hemanth.selam@gmail.com>
---
 fs/gfs2/bmap.c     | 2 +-
 fs/gfs2/lock_dlm.c | 4 ++--
 fs/gfs2/recovery.c | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/fs/gfs2/bmap.c b/fs/gfs2/bmap.c
index 73c626971163..8c734450c998 100644
--- a/fs/gfs2/bmap.c
+++ b/fs/gfs2/bmap.c
@@ -1212,7 +1212,7 @@ const struct iomap_ops gfs2_iomap_ops = {
  * @inode: The inode
  * @lblock: The logical block number
  * @bh_map: The bh to be mapped
- * @create: True if its ok to alloc blocks to satify the request
+ * @create: True if its ok to alloc blocks to satisfy the request
  *
  * The size of the requested mapping is defined in bh_map->b_size.
  *
diff --git a/fs/gfs2/lock_dlm.c b/fs/gfs2/lock_dlm.c
index cef4bdee92a8..47eec0c13025 100644
--- a/fs/gfs2/lock_dlm.c
+++ b/fs/gfs2/lock_dlm.c
@@ -431,7 +431,7 @@ static void gdlm_cancel(struct gfs2_glock *gl)
  * 10. gfs2_control sets control_lock lvb = new gen + bits for failed jids
  * 12. gfs2_recover does journal recoveries for failed jids identified above
  * 14. gfs2_control clears control_lock lvb bits for recovered jids
- * 15. gfs2_control checks if recover_block == recover_start (step 3 occured
+ * 15. gfs2_control checks if recover_block == recover_start (step 3 occurred
  *     again) then do nothing, otherwise if recover_start > recover_block
  *     then clear BLOCK_LOCKS.
  *
@@ -809,7 +809,7 @@ static void gfs2_control_func(struct work_struct *work)
 
 	/*
 	 * No more jid bits set in lvb, all recovery is done, unblock locks
-	 * (unless a new recover_prep callback has occured blocking locks
+	 * (unless a new recover_prep callback has occurred blocking locks
 	 * again while working above)
 	 */
 
diff --git a/fs/gfs2/recovery.c b/fs/gfs2/recovery.c
index 616c46aa3434..27777497677f 100644
--- a/fs/gfs2/recovery.c
+++ b/fs/gfs2/recovery.c
@@ -155,7 +155,7 @@ int __get_log_header(struct gfs2_sbd *sdp, const struct gfs2_log_header *lh,
  * @blk: the block to look at
  * @head: the log header to return
  *
- * Read the log header for a given segement in a given journal.  Do a few
+ * Read the log header for a given segment in a given journal.  Do a few
  * sanity checks on it.
  *
  * Returns: 0 on success,
-- 
2.48.1
Re: [PATCH] gfs2: fix typos in comments
Posted by Andreas Gruenbacher 3 weeks ago
On Fri, Sep 4, 2026 at 1:24 PM Hemanth Selam <hemanth.selam@gmail.com> wrote:
> Fix typos in comments, reported by scripts/checkpatch.pl using the
> misspelling list in scripts/spelling.txt.  Only touches comments, no code
> changes.
>
> Assisted-by: Cursor:claude-opus-5
> Signed-off-by: Hemanth Selam <hemanth.selam@gmail.com>
> ---
>  fs/gfs2/bmap.c     | 2 +-
>  fs/gfs2/lock_dlm.c | 4 ++--
>  fs/gfs2/recovery.c | 2 +-
>  3 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/fs/gfs2/bmap.c b/fs/gfs2/bmap.c
> index 73c626971163..8c734450c998 100644
> --- a/fs/gfs2/bmap.c
> +++ b/fs/gfs2/bmap.c
> @@ -1212,7 +1212,7 @@ const struct iomap_ops gfs2_iomap_ops = {
>   * @inode: The inode
>   * @lblock: The logical block number
>   * @bh_map: The bh to be mapped
> - * @create: True if its ok to alloc blocks to satify the request
> + * @create: True if its ok to alloc blocks to satisfy the request
>   *
>   * The size of the requested mapping is defined in bh_map->b_size.
>   *
> diff --git a/fs/gfs2/lock_dlm.c b/fs/gfs2/lock_dlm.c
> index cef4bdee92a8..47eec0c13025 100644
> --- a/fs/gfs2/lock_dlm.c
> +++ b/fs/gfs2/lock_dlm.c
> @@ -431,7 +431,7 @@ static void gdlm_cancel(struct gfs2_glock *gl)
>   * 10. gfs2_control sets control_lock lvb = new gen + bits for failed jids
>   * 12. gfs2_recover does journal recoveries for failed jids identified above
>   * 14. gfs2_control clears control_lock lvb bits for recovered jids
> - * 15. gfs2_control checks if recover_block == recover_start (step 3 occured
> + * 15. gfs2_control checks if recover_block == recover_start (step 3 occurred
>   *     again) then do nothing, otherwise if recover_start > recover_block
>   *     then clear BLOCK_LOCKS.
>   *
> @@ -809,7 +809,7 @@ static void gfs2_control_func(struct work_struct *work)
>
>         /*
>          * No more jid bits set in lvb, all recovery is done, unblock locks
> -        * (unless a new recover_prep callback has occured blocking locks
> +        * (unless a new recover_prep callback has occurred blocking locks
>          * again while working above)
>          */
>
> diff --git a/fs/gfs2/recovery.c b/fs/gfs2/recovery.c
> index 616c46aa3434..27777497677f 100644
> --- a/fs/gfs2/recovery.c
> +++ b/fs/gfs2/recovery.c
> @@ -155,7 +155,7 @@ int __get_log_header(struct gfs2_sbd *sdp, const struct gfs2_log_header *lh,
>   * @blk: the block to look at
>   * @head: the log header to return
>   *
> - * Read the log header for a given segement in a given journal.  Do a few
> + * Read the log header for a given segment in a given journal.  Do a few
>   * sanity checks on it.
>   *
>   * Returns: 0 on success,
> --
> 2.48.1

Applied to for-next, thanks.

Andreas