]> git.baikalelectronics.ru Git - kernel.git/commit
kernfs: remove KERNFS_STATIC_NAME
authorTejun Heo <tj@kernel.org>
Fri, 13 Feb 2015 22:36:31 +0000 (14:36 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 14 Feb 2015 05:21:36 +0000 (21:21 -0800)
commita86f0e2b6942f1eedcdf6cb072de6ee095f29205
tree22af2116c4b061fd8ce268f78f56696e0a21c5c1
parentbbca23c983aa5a9505860e81619c96b9a37dcb1c
kernfs: remove KERNFS_STATIC_NAME

When a new kernfs node is created, KERNFS_STATIC_NAME is used to avoid
making a separate copy of its name.  It's currently only used for sysfs
attributes whose filenames are required to stay accessible and unchanged.
There are rare exceptions where these names are allocated and formatted
dynamically but for the vast majority of cases they're consts in the
rodata section.

Now that kernfs is converted to use kstrdup_const() and kfree_const(),
there's little point in keeping KERNFS_STATIC_NAME around.  Remove it.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/kernfs/dir.c
fs/kernfs/file.c
fs/sysfs/file.c
include/linux/kernfs.h
kernel/cgroup.c