alistair23-linux/fs/sysfs
Eric W. Biederman 746edb7ae8 sysfs: Implement sysfs_delete_link
When removing a symlink sysfs_remove_link does not provide
enough information to figure out which tagged directory the symlink
falls in.  So I need sysfs_delete_link which is passed the target
of the symlink to delete.

sysfs_rename_link is updated to call sysfs_delete_link instead
of sysfs_remove_link as we have all of the information necessary
and the callers are interesting.

Both of these functions now have enough information to find a symlink
in a tagged directory.  The only restriction is that they must be called
before the target kobject is renamed or deleted.  If they are called
later I loose track of which tag the target kobject was marked with
and can no longer find the old symlink to remove it.

This patch was split from an earlier patch.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Benjamin Thery <benjamin.thery@bull.net>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-05-21 09:37:31 -07:00
..
bin.c sysfs: Implement sysfs tagged directory support. 2010-05-21 09:37:31 -07:00
dir.c sysfs: Add support for tagged directories with untagged members. 2010-05-21 09:37:31 -07:00
file.c sysfs: Implement sysfs tagged directory support. 2010-05-21 09:37:31 -07:00
group.c sysfs: Implement sysfs tagged directory support. 2010-05-21 09:37:31 -07:00
inode.c sysfs: Add support for tagged directories with untagged members. 2010-05-21 09:37:31 -07:00
Kconfig fs/Kconfig: move sysfs out 2009-01-22 13:15:56 +03:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mount.c sysfs: Implement sysfs tagged directory support. 2010-05-21 09:37:31 -07:00
symlink.c sysfs: Implement sysfs_delete_link 2010-05-21 09:37:31 -07:00
sysfs.h sysfs: Implement sysfs tagged directory support. 2010-05-21 09:37:31 -07:00