aboutsummaryrefslogtreecommitdiffstats
path: root/lib/string.c
diff options
context:
space:
mode:
authorAndrzej Hajda <[email protected]>2015-02-13 22:36:38 +0000
committerLinus Torvalds <[email protected]>2015-02-14 05:21:36 +0000
commit3dec16ea38afce38ceb49c8938901318797a08c4 (patch)
treed40b51012496854360bc3292675cc3520ac4cbef /lib/string.c
parentclk: convert clock name allocations to kstrdup_const (diff)
downloadkernel-3dec16ea38afce38ceb49c8938901318797a08c4.tar.gz
kernel-3dec16ea38afce38ceb49c8938901318797a08c4.zip
mm/slab: convert cache name allocations to kstrdup_const
slab frequently performs duplication of strings located in read-only memory section. Replacing kstrdup by kstrdup_const allows to avoid such operations. [[email protected]: make the handling of kmem_cache.name const-correct] Signed-off-by: Andrzej Hajda <[email protected]> Cc: Marek Szyprowski <[email protected]> Cc: Kyungmin Park <[email protected]> Cc: Mike Turquette <[email protected]> Cc: Alexander Viro <[email protected]> Cc: Christoph Lameter <[email protected]> Cc: Pekka Enberg <[email protected]> Cc: David Rientjes <[email protected]> Cc: Joonsoo Kim <[email protected]> Cc: Tejun Heo <[email protected]> Cc: Greg KH <[email protected]> Cc: Geert Uytterhoeven <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/string.c')
0 files changed, 0 insertions, 0 deletions