loop: slab allocation for loop_file_extent in fastfs mode
authorJens Axboe <jens.axboe@oracle.com>
Mon, 2 Mar 2009 08:05:12 +0000 (09:05 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 28 Aug 2009 08:00:15 +0000 (10:00 +0200)
commitaa763e4091924ff590e853d0178cb2fece711e09
tree7743bcd91ef1ed5bde2dc7e0a833d1137b9359aa
parentc7e64a442f7b3a4f48f039b8b70d4242d702dec9
loop: slab allocation for loop_file_extent in fastfs mode

This saves us almost 38% in memory consumption for the extents,
since they are 40 bytes and end up going to the size-64 slab
cache if we use kmalloc().

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
drivers/block/loop.c