sysfs: kill attribute file orphaning
Now that sysfs_dirent can be disconnected from kobject on deletion, there is no need to orphan each attribute files. All [bin_]attribute nodes are automatically orphaned when the parent node is deleted. Kill attribute file orphaning. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
0ab66088c8
commit
73107cb3ad
@ -88,22 +88,6 @@ extern const struct file_operations bin_fops;
|
||||
extern const struct inode_operations sysfs_dir_inode_operations;
|
||||
extern const struct inode_operations sysfs_symlink_inode_operations;
|
||||
|
||||
struct sysfs_buffer {
|
||||
struct list_head associates;
|
||||
size_t count;
|
||||
loff_t pos;
|
||||
char * page;
|
||||
struct sysfs_ops * ops;
|
||||
struct semaphore sem;
|
||||
int orphaned;
|
||||
int needs_read_fill;
|
||||
int event;
|
||||
};
|
||||
|
||||
struct sysfs_buffer_collection {
|
||||
struct list_head associates;
|
||||
};
|
||||
|
||||
static inline struct sysfs_dirent * sysfs_get(struct sysfs_dirent * sd)
|
||||
{
|
||||
if (sd) {
|
||||
|
Reference in New Issue
Block a user