diff options
| author | Andrzej Hajda <[email protected]> | 2015-02-13 22:36:27 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2015-02-14 05:21:35 +0000 |
| commit | 75287a677ba1beab7ca0db948468f44eb23a709f (patch) | |
| tree | 94ce4c696199aac8372d9e6e5a5162bad64fc54c /lib/bitmap.c | |
| parent | mm/util: add kstrdup_const (diff) | |
| download | kernel-75287a677ba1beab7ca0db948468f44eb23a709f.tar.gz kernel-75287a677ba1beab7ca0db948468f44eb23a709f.zip | |
kernfs: convert node name allocation to kstrdup_const
sysfs frequently performs duplication of strings located in read-only
memory section. Replacing kstrdup by kstrdup_const allows to avoid such
operations.
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]>
Acked-by: 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/bitmap.c')
0 files changed, 0 insertions, 0 deletions
