summaryrefslogtreecommitdiff
path: root/fs/romfs
diff options
context:
space:
mode:
authorCurt Wohlgemuth <curtw@google.com>2010-10-28 01:29:12 (GMT)
committerTheodore Ts'o <tytso@mit.edu>2010-10-28 01:29:12 (GMT)
commitfb1813f4a8a27bbd4735967e46931e61fc837a3e (patch)
treec9d7c9d851c81663a8e501ba5c14f2a4b332f893 /fs/romfs
parentb853fd364810a241050778124842a8c415c72a69 (diff)
downloadlinux-fb1813f4a8a27bbd4735967e46931e61fc837a3e.tar.xz
ext4: use dedicated slab caches for group_info structures
ext4_group_info structures are currently allocated with kmalloc(). With a typical 4K block size, these are 136 bytes each -- meaning they'll each consume a 256-byte slab object. On a system with many ext4 large partitions, that's a lot of wasted kernel slab space. (E.g., a single 1TB partition will have about 8000 block groups, using about 2MB of slab, of which nearly 1MB is wasted.) This patch creates an array of slab pointers created as needed -- depending on the superblock block size -- and uses these slabs to allocate the group info objects. Google-Bug-Id: 2980809 Signed-off-by: Curt Wohlgemuth <curtw@google.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/romfs')
0 files changed, 0 insertions, 0 deletions