]> asedeno.scripts.mit.edu Git - linux.git/commit
isofs compress: Remove VLA usage
authorKyle Spiers <ksspiers@google.com>
Wed, 11 Apr 2018 00:02:29 +0000 (17:02 -0700)
committerJan Kara <jack@suse.cz>
Wed, 11 Apr 2018 07:55:40 +0000 (09:55 +0200)
commit5ac7c2fd6e7102532104907c0df94abca826ec5c
tree541480a00b9870bb5b97328c8abca5897e7aa7c7
parent1aa3b3e0cbdb32439f04842e88fc7557a0777660
isofs compress: Remove VLA usage

As part of the effort to remove VLAs from the kernel[1], this changes
the allocation of the bhs and pages arrays from being on the stack to being
kcalloc()ed. This also allows for the removal of the explicit zeroing
of bhs.

https://lkml.org/lkml/2018/3/7/621

Signed-off-by: Kyle Spiers <ksspiers@google.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/isofs/compress.c