sysfs, kernfs: move dir core code to fs/kernfs/dir.c
authorTejun Heo <tj@kernel.org>
Thu, 28 Nov 2013 19:54:33 +0000 (14:54 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Nov 2013 02:08:39 +0000 (18:08 -0800)
commitfd7b9f7b9776b11df629e9dd3865320bf57ce588
tree06e3d55ac0179dce37b477ae6941058b00bedc3c
parentffed24e22845a3da0ae01095ae3f11c8d16e889d
sysfs, kernfs: move dir core code to fs/kernfs/dir.c

Move core dir code to fs/kernfs/dir.c.  fs/sysfs/dir.c now only
contains sysfs_warn_dup() and sysfs wrappers around kernfs interfaces.
The respective declarations in fs/sysfs/sysfs.h are moved to
fs/kernfs/kernfs-internal.h.

This is pure relocation.

v2: sysfs_symlink_target_lock was mistakenly relocated to kernfs.  It
    should remain with sysfs.  Fixed.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/kernfs/dir.c
fs/kernfs/kernfs-internal.h
fs/sysfs/dir.c
fs/sysfs/sysfs.h