aboutsummaryrefslogtreecommitdiffstats
path: root/fs/bcachefs
diff options
authorThorsten Blum <thorsten.blum@linux.dev>2025-03-08 20:53:53 +0100
committerKent Overstreet <kent.overstreet@linux.dev>2025-03-14 21:02:16 -0400
commitc073ec6bec0d05781380ecabca9e8611e4b48502 (patch)
tree5f9cfa63e51659442c4305d3c71a7044b8c4747d /fs/bcachefs
parent94373026d930b9ed72c8f8f0f3d532e13654fdb1 (diff)
downloadath-c073ec6bec0d05781380ecabca9e8611e4b48502.tar.gz
bcachefs: Remove unnecessary byte allocation
The extra byte is not used - remove it. Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs')
-rw-r--r--fs/bcachefs/fs-ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/fs-ioctl.c b/fs/bcachefs/fs-ioctl.c
index 17c035f9d6291..5b47b94fe1ea4 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;