diff options
author | Mikulas Patocka <[email protected]> | 2024-11-18 16:14:27 +0100 |
---|---|---|
committer | Mikulas Patocka <[email protected]> | 2024-11-20 11:44:23 +0100 |
commit | 61a57254a942705ca0a13d71a0b8387b299a65da (patch) | |
tree | 1c9daa734650dff2b7e15222007fb7c581856a4f /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | e74fa2447bf9ed03d085b6d91f0256cc1b53f1a8 (diff) |
dm-bufio: use kmalloc to allocate power-of-two sized buffers
Vlastimil Babka said [1] that kmalloc will return a power-of-two-aligned
buffer if it was called with a power-of-two size. So, we can use kmalloc
instead of our own slab cache in dm-bufio. Note that the code for the
slab cache was not removed because dm-bufio supports non-power-of-two
buffer sizes.
Link: https://lore.kernel.org/linux-mm/[email protected]/ [1]
Signed-off-by: Mikulas Patocka <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions