kernel-hacking-2024-linux-s.../fs/sysfs
Eric W. Biederman a2db684287 sysfs: Only take active references on attributes.
If we exclude directories and symlinks from the set of sysfs
dirents where we need active references we are left with
sysfs attributes (binary or not).

- Tweak sysfs_deactivate to only do something on attributes
- Move lockdep initialization into sysfs_file_add_mode to
  limit it to just attributes.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Acked-by: WANG Cong <xiyou.wangcong@gmail.com>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-03-07 17:04:51 -08:00
..
bin.c sysfs: Remove sysfs_get/put_active_two 2010-03-07 17:04:51 -08:00
dir.c sysfs: Only take active references on attributes. 2010-03-07 17:04:51 -08:00
file.c sysfs: Only take active references on attributes. 2010-03-07 17:04:51 -08:00
group.c
inode.c sysfs: sysfs_sd_setattr set iattrs unconditionally 2010-02-16 15:42:42 -08:00
Kconfig
Makefile
mount.c
symlink.c sysfs: Implement sysfs_getattr & sysfs_permission 2009-12-11 11:24:54 -08:00
sysfs.h sysfs: Only take active references on attributes. 2010-03-07 17:04:51 -08:00