aboutsummaryrefslogtreecommitdiffstats
path: root/fs/sysfs/sysfs.h
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2007-06-13 14:45:16 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2007-07-11 19:09:05 -0400
commit73107cb3ad3963c0f929ae681c05081eafb1c079 (patch)
tree78c9647d5e6a0d9c89cb8c37b7533aad8f805302 /fs/sysfs/sysfs.h
parent0ab66088c855eca68513bdd7442a426c4b374ced (diff)
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>
Diffstat (limited to 'fs/sysfs/sysfs.h')
-rw-r--r--fs/sysfs/sysfs.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/fs/sysfs/sysfs.h b/fs/sysfs/sysfs.h
index d998e8e27841..8b09e9d882c2 100644
--- a/fs/sysfs/sysfs.h
+++ b/fs/sysfs/sysfs.h
@@ -88,22 +88,6 @@ extern const struct file_operations bin_fops;
88extern const struct inode_operations sysfs_dir_inode_operations; 88extern const struct inode_operations sysfs_dir_inode_operations;
89extern const struct inode_operations sysfs_symlink_inode_operations; 89extern const struct inode_operations sysfs_symlink_inode_operations;
90 90
91struct sysfs_buffer {
92 struct list_head associates;
93 size_t count;
94 loff_t pos;
95 char * page;
96 struct sysfs_ops * ops;
97 struct semaphore sem;
98 int orphaned;
99 int needs_read_fill;
100 int event;
101};
102
103struct sysfs_buffer_collection {
104 struct list_head associates;
105};
106
107static inline struct sysfs_dirent * sysfs_get(struct sysfs_dirent * sd) 91static inline struct sysfs_dirent * sysfs_get(struct sysfs_dirent * sd)
108{ 92{
109 if (sd) { 93 if (sd) {