https://github.com/torvalds/linux
Revision 8df3aaaf9b5f8bdfc4036695fa22f35b45b4d92f authored by Joern Engel on 13 March 2018, 18:36:49 UTC, committed by Linus Torvalds on 14 March 2018, 23:55:29 UTC
geo->keylen cannot be larger than 4.  So we might as well make
fixed-size allocations.

Given the one remaining user, geo->keylen cannot even be larger than 1.
Logfs used to have 64bit and 128bit keys, tcm_qla2xxx only has 32bit
keys.  But let's not break the code if we don't have to.

Signed-off-by: Joern Engel <joern@purestorage.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent fed8f50
History
Tip revision: 8df3aaaf9b5f8bdfc4036695fa22f35b45b4d92f authored by Joern Engel on 13 March 2018, 18:36:49 UTC
btree: avoid variable-length allocations
Tip revision: 8df3aaa
File Mode Size
Documentation
LICENSES
arch
block
certs
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.cocciconfig -rw-r--r-- 59 bytes
.get_maintainer.ignore -rw-r--r-- 31 bytes
.gitattributes -rw-r--r-- 30 bytes
.gitignore -rw-r--r-- 1.5 KB
.mailmap -rw-r--r-- 8.8 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 96.2 KB
Kbuild -rw-r--r-- 2.2 KB
Kconfig -rw-r--r-- 287 bytes
MAINTAINERS -rw-r--r-- 435.6 KB
Makefile -rw-r--r-- 60.2 KB
README -rw-r--r-- 722 bytes

README

back to top