Skip to content
Commit d2eecb03 authored by Theodore Ts'o's avatar Theodore Ts'o
Browse files

ext4: Use slab allocator for sub-page sized allocations



Now that the SLUB seems to be fixed so that it respects the requested
alignment, use kmem_cache_alloc() to allocator if the block size of
the buffer heads to be allocated is less than the page size.
Previously, we were using 16k page on a Power system for each buffer,
even when the file system was using 1k or 4k block size.

Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
parent f8ec9d68
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment