* [PATCH] ext4: fix typos in comments
@ 2026-09-07 6:40 Hemanth Selam
2026-09-07 9:38 ` Jan Kara
0 siblings, 1 reply; 2+ messages in thread
From: Hemanth Selam @ 2026-09-07 6:40 UTC (permalink / raw)
To: Theodore Ts'o, Andreas Dilger, Baokun Li, Jan Kara,
Ojaswin Mujoo, Ritesh Harjani, Zhang Yi
Cc: linux-ext4, linux-kernel
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/ext4/extents.c | 2 +-
fs/ext4/inode.c | 2 +-
fs/ext4/mballoc.c | 8 ++++----
fs/ext4/mballoc.h | 4 ++--
4 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index 76038b6c3655..d5d7ee229e4a 100644
--- a/fs/ext4/extents.c
+++ b/fs/ext4/extents.c
@@ -3186,7 +3186,7 @@ int ext4_ext_zeroout(struct inode *inode, struct ext4_extent *ex)
* @handle: the journal handle
* @inode: the file inode
* @path: the path to the extent
- * @split: the logical block where the extent is splitted.
+ * @split: the logical block where the extent is split.
* @flags: flags used to insert new extent to extent tree.
*
*
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index bd4b778df9eb..e719fa3cbaaf 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -2163,7 +2163,7 @@ static bool mpage_add_bh_to_extent(struct mpage_da_data *mpd, ext4_lblk_t lblk,
* @bh - buffer we should start processing from
* @lblk - logical number of the block in the file corresponding to @bh
*
- * Walk through page buffers from @bh upto @head (exclusive) and either submit
+ * Walk through page buffers from @bh up to @head (exclusive) and either submit
* the page for IO if all buffers in this page were mapped and there's no
* accumulated extent of buffers to map or add buffers in the page to the
* extent of buffers to map. The function returns 1 if the caller can continue
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
index 06171a11db12..47156ce9e5c0 100644
--- a/fs/ext4/mballoc.c
+++ b/fs/ext4/mballoc.c
@@ -234,7 +234,7 @@
*
* there are two types of preallocations:
* - inode
- * assiged to specific inode and can be used for this inode only.
+ * assigned to specific inode and can be used for this inode only.
* it describes part of inode's space preallocated to specific
* physical blocks. any block from that preallocated can be used
* independent. the descriptor just tracks number of blocks left
@@ -2326,11 +2326,11 @@ static void ext4_mb_check_limits(struct ext4_allocation_context *ac,
* stop the scan and use it immediately
*
* * If free extent found is smaller than goal, then keep retrying
- * upto a max of sbi->s_mb_max_to_scan times (default 200). After
+ * up to a max of sbi->s_mb_max_to_scan times (default 200). After
* that stop scanning and use whatever we have.
*
* * If free extent found is bigger than goal, then keep retrying
- * upto a max of sbi->s_mb_min_to_scan times (default 10) before
+ * up to a max of sbi->s_mb_min_to_scan times (default 10) before
* stopping the scan and using the extent.
*
*
@@ -3029,7 +3029,7 @@ ext4_mb_regular_allocator(struct ext4_allocation_context *ac)
* is greater than equal to the sbi_s_mb_order2_reqs
* You can tune it via /sys/fs/ext4/<partition>/mb_order2_req
* We also support searching for power-of-two requests only for
- * requests upto maximum buddy size we have constructed.
+ * requests up to maximum buddy size we have constructed.
*/
if (i >= sbi->s_mb_order2_reqs && i <= MB_NUM_ORDERS(sb)) {
if (is_power_of_2(ac->ac_g_ex.fe_len))
diff --git a/fs/ext4/mballoc.h b/fs/ext4/mballoc.h
index 39333ce72cbd..571d9bd93810 100644
--- a/fs/ext4/mballoc.h
+++ b/fs/ext4/mballoc.h
@@ -86,9 +86,9 @@
#define MB_DEFAULT_LINEAR_SCAN_THRESHOLD 16
/*
- * The maximum order upto which CR_BEST_AVAIL_LEN can trim a particular
+ * The maximum order up to which CR_BEST_AVAIL_LEN can trim a particular
* allocation request. Example, if we have an order 7 request and max trim order
- * of 3, we can trim this request upto order 4.
+ * of 3, we can trim this request up to order 4.
*/
#define MB_DEFAULT_BEST_AVAIL_TRIM_ORDER 3
--
2.48.1
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] ext4: fix typos in comments
2026-09-07 6:40 [PATCH] ext4: fix typos in comments Hemanth Selam
@ 2026-09-07 9:38 ` Jan Kara
0 siblings, 0 replies; 2+ messages in thread
From: Jan Kara @ 2026-09-07 9:38 UTC (permalink / raw)
To: Hemanth Selam
Cc: Theodore Ts'o, Andreas Dilger, Baokun Li, Jan Kara,
Ojaswin Mujoo, Ritesh Harjani, Zhang Yi, linux-ext4,
linux-kernel
On Mon 07-09-26 12:10:46, Hemanth Selam 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>
Looks good. Feel free to add:
Reviewed-by: Jan Kara <jack@suse.cz>
Honza
> ---
> fs/ext4/extents.c | 2 +-
> fs/ext4/inode.c | 2 +-
> fs/ext4/mballoc.c | 8 ++++----
> fs/ext4/mballoc.h | 4 ++--
> 4 files changed, 8 insertions(+), 8 deletions(-)
>
> diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
> index 76038b6c3655..d5d7ee229e4a 100644
> --- a/fs/ext4/extents.c
> +++ b/fs/ext4/extents.c
> @@ -3186,7 +3186,7 @@ int ext4_ext_zeroout(struct inode *inode, struct ext4_extent *ex)
> * @handle: the journal handle
> * @inode: the file inode
> * @path: the path to the extent
> - * @split: the logical block where the extent is splitted.
> + * @split: the logical block where the extent is split.
> * @flags: flags used to insert new extent to extent tree.
> *
> *
> diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
> index bd4b778df9eb..e719fa3cbaaf 100644
> --- a/fs/ext4/inode.c
> +++ b/fs/ext4/inode.c
> @@ -2163,7 +2163,7 @@ static bool mpage_add_bh_to_extent(struct mpage_da_data *mpd, ext4_lblk_t lblk,
> * @bh - buffer we should start processing from
> * @lblk - logical number of the block in the file corresponding to @bh
> *
> - * Walk through page buffers from @bh upto @head (exclusive) and either submit
> + * Walk through page buffers from @bh up to @head (exclusive) and either submit
> * the page for IO if all buffers in this page were mapped and there's no
> * accumulated extent of buffers to map or add buffers in the page to the
> * extent of buffers to map. The function returns 1 if the caller can continue
> diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
> index 06171a11db12..47156ce9e5c0 100644
> --- a/fs/ext4/mballoc.c
> +++ b/fs/ext4/mballoc.c
> @@ -234,7 +234,7 @@
> *
> * there are two types of preallocations:
> * - inode
> - * assiged to specific inode and can be used for this inode only.
> + * assigned to specific inode and can be used for this inode only.
> * it describes part of inode's space preallocated to specific
> * physical blocks. any block from that preallocated can be used
> * independent. the descriptor just tracks number of blocks left
> @@ -2326,11 +2326,11 @@ static void ext4_mb_check_limits(struct ext4_allocation_context *ac,
> * stop the scan and use it immediately
> *
> * * If free extent found is smaller than goal, then keep retrying
> - * upto a max of sbi->s_mb_max_to_scan times (default 200). After
> + * up to a max of sbi->s_mb_max_to_scan times (default 200). After
> * that stop scanning and use whatever we have.
> *
> * * If free extent found is bigger than goal, then keep retrying
> - * upto a max of sbi->s_mb_min_to_scan times (default 10) before
> + * up to a max of sbi->s_mb_min_to_scan times (default 10) before
> * stopping the scan and using the extent.
> *
> *
> @@ -3029,7 +3029,7 @@ ext4_mb_regular_allocator(struct ext4_allocation_context *ac)
> * is greater than equal to the sbi_s_mb_order2_reqs
> * You can tune it via /sys/fs/ext4/<partition>/mb_order2_req
> * We also support searching for power-of-two requests only for
> - * requests upto maximum buddy size we have constructed.
> + * requests up to maximum buddy size we have constructed.
> */
> if (i >= sbi->s_mb_order2_reqs && i <= MB_NUM_ORDERS(sb)) {
> if (is_power_of_2(ac->ac_g_ex.fe_len))
> diff --git a/fs/ext4/mballoc.h b/fs/ext4/mballoc.h
> index 39333ce72cbd..571d9bd93810 100644
> --- a/fs/ext4/mballoc.h
> +++ b/fs/ext4/mballoc.h
> @@ -86,9 +86,9 @@
> #define MB_DEFAULT_LINEAR_SCAN_THRESHOLD 16
>
> /*
> - * The maximum order upto which CR_BEST_AVAIL_LEN can trim a particular
> + * The maximum order up to which CR_BEST_AVAIL_LEN can trim a particular
> * allocation request. Example, if we have an order 7 request and max trim order
> - * of 3, we can trim this request upto order 4.
> + * of 3, we can trim this request up to order 4.
> */
> #define MB_DEFAULT_BEST_AVAIL_TRIM_ORDER 3
>
> --
> 2.48.1
>
--
Jan Kara <jack@suse.com>
SUSE Labs, CR
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-09-07 9:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-07 6:40 [PATCH] ext4: fix typos in comments Hemanth Selam
2026-09-07 9:38 ` Jan Kara
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®