From: Artem Bityutskiy Date: Sun, 31 Oct 2010 15:54:14 +0000 (+0200) Subject: UBI: add slab cache for ubi_scan_leb objects X-Git-Tag: v2.6.39-rc1~422^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c1e875ca6f3a47b40dce715bd07fdfdb8388d55;p=pandora-kernel.git UBI: add slab cache for ubi_scan_leb objects During scanning UBI allocates one struct ubi_scan_leb object for each PEB, so it can end up allocating thousands of them. Use slab cache to reduce memory consumption for these 48-byte objects, because currently used 'kmalloc()' ends up allocating 64 bytes per object, instead of 48. Signed-off-by: Artem Bityutskiy --- Reading git-diff-tree failed