aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sysfs.h
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2007-09-20 03:05:10 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2007-10-12 17:51:09 -0400
commit5a7ad7f044941316dc98eda2a087a12a7a50649d (patch)
tree03b61af0e90dc158df43f24f8a38792d8c6ae651 /include/linux/sysfs.h
parent59f69015684b3de7b9472be9a81b1a978f93a496 (diff)
sysfs: kill sysfs_update_file()
sysfs_update_file() depends on inode->i_mtime but sysfs iondes are now reclaimable making the reported modification time unreliable. There's only one user (pci hotplug) of this notification mechanism and it reportedly isn't utilized from userland. Kill sysfs_update_file(). Signed-off-by: Tejun Heo <htejun@gmail.com> Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/sysfs.h')
-rw-r--r--include/linux/sysfs.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h
index b393bb449624..db5dd2403d08 100644
--- a/include/linux/sysfs.h
+++ b/include/linux/sysfs.h
@@ -87,8 +87,6 @@ int __must_check sysfs_move_dir(struct kobject *kobj,
87 87
88int __must_check sysfs_create_file(struct kobject *kobj, 88int __must_check sysfs_create_file(struct kobject *kobj,
89 const struct attribute *attr); 89 const struct attribute *attr);
90int __must_check sysfs_update_file(struct kobject *kobj,
91 const struct attribute *attr);
92int __must_check sysfs_chmod_file(struct kobject *kobj, struct attribute *attr, 90int __must_check sysfs_chmod_file(struct kobject *kobj, struct attribute *attr,
93 mode_t mode); 91 mode_t mode);
94void sysfs_remove_file(struct kobject *kobj, const struct attribute *attr); 92void sysfs_remove_file(struct kobject *kobj, const struct attribute *attr);
@@ -149,11 +147,6 @@ static inline int sysfs_create_file(struct kobject *kobj,
149 return 0; 147 return 0;
150} 148}
151 149
152static inline int sysfs_update_file(struct kobject *kobj,
153 const struct attribute *attr)
154{
155 return 0;
156}
157static inline int sysfs_chmod_file(struct kobject *kobj, 150static inline int sysfs_chmod_file(struct kobject *kobj,
158 struct attribute *attr, mode_t mode) 151 struct attribute *attr, mode_t mode)
159{ 152{