* [RESEND PATCH] bcachefs: Remove unnecessary byte allocation
@ 2025-03-08 19:53 Thorsten Blum
2025-03-09 6:59 ` Kent Overstreet
0 siblings, 1 reply; 2+ messages in thread
From: Thorsten Blum @ 2025-03-08 19:53 UTC (permalink / raw)
To: Kent Overstreet; +Cc: Thorsten Blum, linux-bcachefs, linux-kernel
The extra byte is not used - remove it.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
---
fs/bcachefs/fs-ioctl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/bcachefs/fs-ioctl.c b/fs/bcachefs/fs-ioctl.c
index d9f1a7c09e85..9761a365552a 100644
--- a/fs/bcachefs/fs-ioctl.c
+++ b/fs/bcachefs/fs-ioctl.c
@@ -244,7 +244,7 @@ static int bch2_ioc_reinherit_attrs(struct bch_fs *c,
int ret = 0;
subvol_inum inum;
- kname = kmalloc(BCH_NAME_MAX + 1, GFP_KERNEL);
+ kname = kmalloc(BCH_NAME_MAX, GFP_KERNEL);
if (!kname)
return -ENOMEM;
--
2.48.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [RESEND PATCH] bcachefs: Remove unnecessary byte allocation
2025-03-08 19:53 [RESEND PATCH] bcachefs: Remove unnecessary byte allocation Thorsten Blum
@ 2025-03-09 6:59 ` Kent Overstreet
0 siblings, 0 replies; 2+ messages in thread
From: Kent Overstreet @ 2025-03-09 6:59 UTC (permalink / raw)
To: Thorsten Blum; +Cc: linux-bcachefs, linux-kernel
On Sat, Mar 08, 2025 at 08:53:53PM +0100, Thorsten Blum wrote:
> The extra byte is not used - remove it.
>
> Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
applied
> ---
> fs/bcachefs/fs-ioctl.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/bcachefs/fs-ioctl.c b/fs/bcachefs/fs-ioctl.c
> index d9f1a7c09e85..9761a365552a 100644
> --- a/fs/bcachefs/fs-ioctl.c
> +++ b/fs/bcachefs/fs-ioctl.c
> @@ -244,7 +244,7 @@ static int bch2_ioc_reinherit_attrs(struct bch_fs *c,
> int ret = 0;
> subvol_inum inum;
>
> - kname = kmalloc(BCH_NAME_MAX + 1, GFP_KERNEL);
> + kname = kmalloc(BCH_NAME_MAX, GFP_KERNEL);
> if (!kname)
> return -ENOMEM;
>
> --
> 2.48.1
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-03-09 6:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-08 19:53 [RESEND PATCH] bcachefs: Remove unnecessary byte allocation Thorsten Blum
2025-03-09 6:59 ` Kent Overstreet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox