[PATCH] kernel: acct: fix duplicate word in comment

Haoyu Lu posted 1 patch 1 week ago
kernel/acct.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] kernel: acct: fix duplicate word in comment
Posted by Haoyu Lu 1 week ago
From: "haoyu.lu" <hechushiguitu666@gmail.com>

Fix the duplicate word "kernel" in the comment on line 247.

Signed-off-by: haoyu.lu <hechushiguitu666@gmail.com>
---
 kernel/acct.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/acct.c b/kernel/acct.c
index 1e19722c64c3..cbbf79d718cf 100644
--- a/kernel/acct.c
+++ b/kernel/acct.c
@@ -244,7 +244,7 @@ static int acct_on(const char __user *name)
 	if (!S_ISREG(file_inode(file)->i_mode))
 		return -EACCES;

-	/* Exclude kernel kernel internal filesystems. */
+	/* Exclude kernel internal filesystems. */
 	if (file_inode(file)->i_sb->s_flags & (SB_NOUSER | SB_KERNMOUNT))
 		return -EINVAL;

--
2.53.0.windows.1
Re: [PATCH] kernel: acct: fix duplicate word in comment
Posted by Christian Brauner 1 week ago
On Thu, 26 Mar 2026 13:56:27 +0800, Haoyu Lu wrote:
> Fix the duplicate word "kernel" in the comment on line 247.

Applied to the vfs-7.1.misc branch of the vfs/vfs.git tree.
Patches in the vfs-7.1.misc branch should appear in linux-next soon.

Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.

It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.

Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs-7.1.misc

[1/1] kernel: acct: fix duplicate word in comment
      https://git.kernel.org/vfs/vfs/c/388727ef1cdb
Re: [PATCH] kernel: acct: fix duplicate word in comment
Posted by Jan Kara 1 week ago
On Thu 26-03-26 13:56:27, Haoyu Lu wrote:
> From: "haoyu.lu" <hechushiguitu666@gmail.com>
> 
> Fix the duplicate word "kernel" in the comment on line 247.
> 
> Signed-off-by: haoyu.lu <hechushiguitu666@gmail.com>

Looks good. Feel free to add:

Reviewed-by: Jan Kara <jack@suse.cz>
	
								Honza

> ---
>  kernel/acct.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/kernel/acct.c b/kernel/acct.c
> index 1e19722c64c3..cbbf79d718cf 100644
> --- a/kernel/acct.c
> +++ b/kernel/acct.c
> @@ -244,7 +244,7 @@ static int acct_on(const char __user *name)
>  	if (!S_ISREG(file_inode(file)->i_mode))
>  		return -EACCES;
> 
> -	/* Exclude kernel kernel internal filesystems. */
> +	/* Exclude kernel internal filesystems. */
>  	if (file_inode(file)->i_sb->s_flags & (SB_NOUSER | SB_KERNMOUNT))
>  		return -EINVAL;
> 
> --
> 2.53.0.windows.1
-- 
Jan Kara <jack@suse.com>
SUSE Labs, CR