]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: Use slab allocator for sub-page sized allocations
authorTheodore Ts'o <tytso@mit.edu>
Mon, 7 Dec 2009 15:36:20 +0000 (10:36 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 7 Dec 2009 15:36:20 +0000 (10:36 -0500)
commit4db0ecdef64658e7331f92b29690545a532b408b
treef7ef8bd29096ba6c073308cd3b674857be1545d4
parentfa18b4ec480f8b40c9ad952c69e1c6348bb7a17f
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: "Theodore Ts'o" <tytso@mit.edu>
fs/jbd2/journal.c
include/linux/jbd2.h