diff options
author | Joonsoo Kim <iamjoonsoo.kim@lge.com> | 2016-03-16 00:54:41 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-03-16 02:55:16 +0300 |
commit | 3217fd9bdf0017bd0847939f67d52a9c71d8fc56 (patch) | |
tree | 247f6292465ea709f674eca08abc09cc2f52e0ce /certs/.gitignore | |
parent | f3a3c320d54eea39a419fd539f5b0e9c74517b0a (diff) | |
download | linux-3217fd9bdf0017bd0847939f67d52a9c71d8fc56.tar.xz |
mm/slab: make criteria for off slab determination robust and simple
To become an off slab, there are some constraints to avoid bootstrapping
problem and recursive call. This can be avoided differently by simply
checking that corresponding kmalloc cache is ready and it's not a off
slab. It would be more robust because static size checking can be
affected by cache size change or architecture type but dynamic checking
isn't.
One check 'freelist_cache->size > cachep->size / 2' is added to check
benefit of choosing off slab, because, now, there is no size constraint
which ensures enough advantage when selecting off slab.
Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'certs/.gitignore')
0 files changed, 0 insertions, 0 deletions