diff options
author | Pekka Enberg <penberg@cs.helsinki.fi> | 2007-05-07 01:48:40 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-07 23:12:50 +0400 |
commit | fd76bab2fa6d8f3ef6b326a4c6ae442fa21d30a4 (patch) | |
tree | 66f310ab9d7cdadfb79486700f1e01df7923ec14 /drivers/pcmcia | |
parent | e3ebadd95cb621e2c7436f3d3646447ac9d5c16d (diff) | |
download | linux-fd76bab2fa6d8f3ef6b326a4c6ae442fa21d30a4.tar.xz |
slab: introduce krealloc
This introduce krealloc() that reallocates memory while keeping the contents
unchanged. The allocator avoids reallocation if the new size fits the
currently used cache. I also added a simple non-optimized version for
mm/slob.c for compatibility.
[akpm@linux-foundation.org: fix warnings]
Acked-by: Josef Sipek <jsipek@fsl.cs.sunysb.edu>
Acked-by: Matt Mackall <mpm@selenic.com>
Acked-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/pcmcia')
0 files changed, 0 insertions, 0 deletions