aboutsummaryrefslogtreecommitdiffstats
path: root/fs/sysfs/sysfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/sysfs/sysfs.h')
-rw-r--r--fs/sysfs/sysfs.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/fs/sysfs/sysfs.h b/fs/sysfs/sysfs.h
index f8779eaa53ff..ae006b070bf0 100644
--- a/fs/sysfs/sysfs.h
+++ b/fs/sysfs/sysfs.h
@@ -21,7 +21,7 @@ struct sysfs_elem_bin_attr {
21 */ 21 */
22struct sysfs_dirent { 22struct sysfs_dirent {
23 atomic_t s_count; 23 atomic_t s_count;
24 struct rw_semaphore s_active; 24 atomic_t s_active;
25 struct sysfs_dirent * s_parent; 25 struct sysfs_dirent * s_parent;
26 struct list_head s_sibling; 26 struct list_head s_sibling;
27 struct list_head s_children; 27 struct list_head s_children;
@@ -42,16 +42,7 @@ struct sysfs_dirent {
42 atomic_t s_event; 42 atomic_t s_event;
43}; 43};
44 44
45/* 45#define SD_DEACTIVATED_BIAS INT_MIN
46 * A sysfs file which deletes another file when written to need to
47 * write lock the s_active of the victim while its s_active is read
48 * locked for the write operation. Tell lockdep that this is okay.
49 */
50enum sysfs_s_active_class
51{
52 SYSFS_S_ACTIVE_NORMAL, /* file r/w access, etc - default */
53 SYSFS_S_ACTIVE_DEACTIVATE, /* file deactivation */
54};
55 46
56extern struct vfsmount * sysfs_mount; 47extern struct vfsmount * sysfs_mount;
57extern struct kmem_cache *sysfs_dir_cachep; 48extern struct kmem_cache *sysfs_dir_cachep;