[PATCHSET driver-core-next] kernfs: s/sysfs/kernfs/

Tejun Heo
2013-12-11T19:12:33Z

Hello,

kernfs just got separated out from sysfs and contains a lot of names
carried over from sysfs which are misnomers. Thanks to the code
movement and large-scale reorganization, kernfs code is already in
full conflict mode with any patches generated against sysfs prior the
separation and in a lot of cases those conflicts won't be simple "file
moved there" conflicts but deeper ones due to the large scale
refactoring which happened for the separation.

We can't really make the situation much worse. Let's take the chance
and rename things so that the misnomers in kernfs don't cause
confusions in the future.

This patchset contains the following six rename patches.

0001-kernfs-s-sysfs_dirent-kernfs_node-and-rename-its-fri.patch
0002-kernfs-drop-s_-prefix-from-kernfs_node-members.patch
0003-kernfs-s-sysfs-kernfs-in-various-data-structures.patch
0004-kernfs-s-sysfs-kernfs-in-constants.patch
0005-kernfs-s-sysfs-kernfs-in-global-variables.patch
0006-kernfs-s-sysfs-kernfs-in-internal-functions-and-what.patch

While the patches are fairly large, they are all trivial rename
patches. Nothing else. There's no functional change to the code base
before and after.

This patchset is based on the current driver-core-next a8b1c0193602
("Documentation: start documenting driver design patterns") and also
available in the following git branch.

git://git.kernel.org/pub/scm/linux/kernel/git/tj/misc.git review-kernfs-rename

diffstat follows.

drivers/gpio/gpiolib.c | 4
drivers/md/bitmap.c | 2
drivers/md/bitmap.h | 2
drivers/md/md.h | 10
drivers/misc/mic/host/mic_device.h | 2
fs/kernfs/dir.c | 776 ++++++++++++++++++-------------------
fs/kernfs/file.c | 389 +++++++++---------
fs/kernfs/inode.c | 227 +++++-----
fs/kernfs/kernfs-internal.h | 96 ++--
fs/kernfs/mount.c | 56 +-
fs/kernfs/symlink.c | 110 ++---
fs/sysfs/dir.c | 66 +--
fs/sysfs/file.c | 132 +++---
fs/sysfs/group.c | 96 ++--
fs/sysfs/mount.c | 4
fs/sysfs/symlink.c | 76 +--
fs/sysfs/sysfs.h | 10
include/linux/kernfs.h | 226 +++++-----
include/linux/kobject.h | 2
include/linux/sysfs.h | 20
lib/kobject.c | 2
21 files changed, 1154 insertions(+), 1154 deletions(-)

Thanks.

--
tejun