* [PATCH v1] ext4: fix incorrect function name in comment
@ 2025-08-12 2:17 Baolin Liu
2025-08-12 17:20 ` Darrick J. Wong
2025-08-14 14:48 ` Theodore Ts'o
0 siblings, 2 replies; 5+ messages in thread
From: Baolin Liu @ 2025-08-12 2:17 UTC (permalink / raw)
To: tytso, adilger.kernel; +Cc: linux-ext4, linux-kernel, Baolin Liu
From: Baolin Liu <liubaolin@kylinos.cn>
The comment mentions block_write_begin(), but the actual function
called is ext4_block_write_begin().
Fix the comment to match the real function name.
Signed-off-by: Baolin Liu <liubaolin@kylinos.cn>
---
fs/ext4/inode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index ed54c4d0f2f9..b0e3814f8502 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -3155,7 +3155,7 @@ static int ext4_da_write_begin(const struct kiocb *iocb,
folio_unlock(folio);
folio_put(folio);
/*
- * block_write_begin may have instantiated a few blocks
+ * ext4_block_write_begin may have instantiated a few blocks
* outside i_size. Trim these off again. Don't need
* i_size_read because we hold inode lock.
*/
--
2.39.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v1] ext4: fix incorrect function name in comment
2025-08-12 2:17 [PATCH v1] ext4: fix incorrect function name in comment Baolin Liu
@ 2025-08-12 17:20 ` Darrick J. Wong
2025-08-13 12:17 ` liubaolin
2025-08-15 3:13 ` liubaolin
2025-08-14 14:48 ` Theodore Ts'o
1 sibling, 2 replies; 5+ messages in thread
From: Darrick J. Wong @ 2025-08-12 17:20 UTC (permalink / raw)
To: Baolin Liu; +Cc: tytso, adilger.kernel, linux-ext4, linux-kernel, Baolin Liu
On Tue, Aug 12, 2025 at 10:17:09AM +0800, Baolin Liu wrote:
> From: Baolin Liu <liubaolin@kylinos.cn>
>
> The comment mentions block_write_begin(), but the actual function
> called is ext4_block_write_begin().
> Fix the comment to match the real function name.
>
> Signed-off-by: Baolin Liu <liubaolin@kylinos.cn>
Heh, that comment was copy-pasted too :/
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
--D
> ---
> fs/ext4/inode.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
> index ed54c4d0f2f9..b0e3814f8502 100644
> --- a/fs/ext4/inode.c
> +++ b/fs/ext4/inode.c
> @@ -3155,7 +3155,7 @@ static int ext4_da_write_begin(const struct kiocb *iocb,
> folio_unlock(folio);
> folio_put(folio);
> /*
> - * block_write_begin may have instantiated a few blocks
> + * ext4_block_write_begin may have instantiated a few blocks
> * outside i_size. Trim these off again. Don't need
> * i_size_read because we hold inode lock.
> */
> --
> 2.39.2
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v1] ext4: fix incorrect function name in comment
2025-08-12 17:20 ` Darrick J. Wong
@ 2025-08-13 12:17 ` liubaolin
2025-08-15 3:13 ` liubaolin
1 sibling, 0 replies; 5+ messages in thread
From: liubaolin @ 2025-08-13 12:17 UTC (permalink / raw)
To: Darrick J. Wong
Cc: tytso, adilger.kernel, linux-ext4, linux-kernel, Baolin Liu
> Since commit 6b730a405037 “ext4: hoist ext4_block_write_begin and replace the __block_write_begin”, the comment should be updated accordingly from '__block_write_begin' to 'ext4_block_write_begin'.
在 2025/8/13 1:20, Darrick J. Wong 写道:
> On Tue, Aug 12, 2025 at 10:17:09AM +0800, Baolin Liu wrote:
>> From: Baolin Liu <liubaolin@kylinos.cn>
>>
>> The comment mentions block_write_begin(), but the actual function
>> called is ext4_block_write_begin().
>> Fix the comment to match the real function name.
>>
>> Signed-off-by: Baolin Liu <liubaolin@kylinos.cn>
>
> Heh, that comment was copy-pasted too :/
>
> Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
>
> --D
>
>> ---
>> fs/ext4/inode.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
>> index ed54c4d0f2f9..b0e3814f8502 100644
>> --- a/fs/ext4/inode.c
>> +++ b/fs/ext4/inode.c
>> @@ -3155,7 +3155,7 @@ static int ext4_da_write_begin(const struct kiocb *iocb,
>> folio_unlock(folio);
>> folio_put(folio);
>> /*
>> - * block_write_begin may have instantiated a few blocks
>> + * ext4_block_write_begin may have instantiated a few blocks
>> * outside i_size. Trim these off again. Don't need
>> * i_size_read because we hold inode lock.
>> */
>> --
>> 2.39.2
>>
>>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v1] ext4: fix incorrect function name in comment
2025-08-12 2:17 [PATCH v1] ext4: fix incorrect function name in comment Baolin Liu
2025-08-12 17:20 ` Darrick J. Wong
@ 2025-08-14 14:48 ` Theodore Ts'o
1 sibling, 0 replies; 5+ messages in thread
From: Theodore Ts'o @ 2025-08-14 14:48 UTC (permalink / raw)
To: Ext4 Developers List, adilger.kernel, Baolin Liu
Cc: Theodore Ts'o, linux-kernel, Baolin Liu
On Tue, 12 Aug 2025 10:17:09 +0800, Baolin Liu wrote:
> The comment mentions block_write_begin(), but the actual function
> called is ext4_block_write_begin().
> Fix the comment to match the real function name.
>
>
Applied, thanks!
[1/1] ext4: fix incorrect function name in comment
commit: 757fc66da91b54d4fbc414bee5c440b52560d3b7
Best regards,
--
Theodore Ts'o <tytso@mit.edu>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v1] ext4: fix incorrect function name in comment
2025-08-12 17:20 ` Darrick J. Wong
2025-08-13 12:17 ` liubaolin
@ 2025-08-15 3:13 ` liubaolin
1 sibling, 0 replies; 5+ messages in thread
From: liubaolin @ 2025-08-15 3:13 UTC (permalink / raw)
To: Darrick J. Wong
Cc: tytso, adilger.kernel, linux-ext4, linux-kernel, Baolin Liu
> Since commit 6b730a405037 “ext4: hoist ext4_block_write_begin and replace the __block_write_begin”, the comment should be updated accordingly from '__block_write_begin' to 'ext4_block_write_begin'.
在 2025/8/13 1:20, Darrick J. Wong 写道:
> On Tue, Aug 12, 2025 at 10:17:09AM +0800, Baolin Liu wrote:
>> From: Baolin Liu <liubaolin@kylinos.cn>
>>
>> The comment mentions block_write_begin(), but the actual function
>> called is ext4_block_write_begin().
>> Fix the comment to match the real function name.
>>
>> Signed-off-by: Baolin Liu <liubaolin@kylinos.cn>
>
> Heh, that comment was copy-pasted too :/
>
> Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
>
> --D
>
>> ---
>> fs/ext4/inode.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
>> index ed54c4d0f2f9..b0e3814f8502 100644
>> --- a/fs/ext4/inode.c
>> +++ b/fs/ext4/inode.c
>> @@ -3155,7 +3155,7 @@ static int ext4_da_write_begin(const struct kiocb *iocb,
>> folio_unlock(folio);
>> folio_put(folio);
>> /*
>> - * block_write_begin may have instantiated a few blocks
>> + * ext4_block_write_begin may have instantiated a few blocks
>> * outside i_size. Trim these off again. Don't need
>> * i_size_read because we hold inode lock.
>> */
>> --
>> 2.39.2
>>
>>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-08-15 3:13 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-12 2:17 [PATCH v1] ext4: fix incorrect function name in comment Baolin Liu
2025-08-12 17:20 ` Darrick J. Wong
2025-08-13 12:17 ` liubaolin
2025-08-15 3:13 ` liubaolin
2025-08-14 14:48 ` Theodore Ts'o
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).