Re: [PATCH 0/5] kstrdup optimization

Tejun Heo
2015-01-14T14:12:42Z

On Tue, Jan 13, 2015 at 03:37:31PM -0800, Andrew Morton wrote:
> What the heck does (the cheerily undocumented) KERNFS_STATIC_NAME do
> and can we remove it if this patchset is in place?

The same thing, in a narrower scope. It's currently used to avoid
making copies of sysfs file names which are required to stay unchanged
and accessible and usually allocated in the rodata section, but the
sysfs directory and all group file names are copied. So, yeah, once
this is in, we can remove the explicit static name handling from
kernfs.

Thanks.

--
tejun