[PATCH 0/20] Sysfs cleanups

Eric W. Biederman
2009-05-20T04:10:09Z

The following patch series cleans up sysfs to the point where itq is
generally a good citizen of the vfs layer. The big theme is lazy
synchronization from the sysfs data structures to the vfs data
structures using the same techniques as most other distributed
filesystems.

This allows the complete removal of i_mutex from the sysfs code,
the death of lookup_one_noperm, and probably a few other weird
cases that slip my tongue.

Included in this is the latest version of my work that merges
sysfs_move_dir and sysfs_rename_dir to simplify maitenance of.

I have been running these patches for several months so there should
be no really nasty surprises in here.

drivers/base/core.c | 18 +-
fs/namei.c | 22 --
fs/sysfs/dir.c | 565 ++++++++++++++-----------------------------------
fs/sysfs/file.c | 47 +----
fs/sysfs/inode.c | 154 ++++++++------
fs/sysfs/mount.c | 20 +-
fs/sysfs/symlink.c | 71 +++----
fs/sysfs/sysfs.h | 25 +--
include/linux/namei.h | 1 -
include/linux/sysfs.h | 9 +
10 files changed, 325 insertions(+), 607 deletions(-)

Eric