projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9437302
)
bcachefs: Remove unnecessary byte allocation
author
Thorsten Blum
<thorsten.blum@linux.dev>
Sat, 8 Mar 2025 19:53:53 +0000
(20:53 +0100)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Sat, 15 Mar 2025 01:02:16 +0000
(21:02 -0400)
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>
fs/bcachefs/fs-ioctl.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/bcachefs/fs-ioctl.c
b/fs/bcachefs/fs-ioctl.c
index 17c035f9d629178032c391bfec6ebaf4788de8c7..5b47b94fe1ea4dd00634caff9ccecb6c4364d6e3 100644
(file)
--- 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;