commit | 6c1e875ca6f3a47b40dce715bd07fdfdb8388d55 | [log] [tgz] |
---|---|---|
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | Sun Oct 31 17:54:14 2010 +0200 |
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | Sun Feb 06 19:19:23 2011 +0200 |
tree | b30ab51df8df7c4ed9ef3adb68b234064816497f | |
parent | 7950d023c562823345892aac2e7c6a49f8de9ad1 [diff] |
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 <Artem.Bityutskiy@nokia.com>