]> git.baikalelectronics.ru Git - kernel.git/commit
gcov: simplify buffer allocation
authorJohannes Berg <johannes.berg@intel.com>
Fri, 7 May 2021 01:04:48 +0000 (18:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 7 May 2021 07:26:32 +0000 (00:26 -0700)
commit01a21f169ec7c8cce14710727f1a2094620f1105
treee1de9e0ae4e4559ea91788ecf79e771289151973
parent6015b99b3a15ed79e226648d3e4b4df0317c6907
gcov: simplify buffer allocation

Use just a single vmalloc() with struct_size() instead of a separate
kmalloc() for the iter struct.

Link: https://lkml.kernel.org/r/20210315235453.b6de4a92096e.Iac40a5166589cefbff8449e466bd1b38ea7a17af@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Cc: Peter Oberparleiter <oberpar@linux.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/gcov/fs.c