summaryrefslogtreecommitdiffstats
path: root/fs/sysfs/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/sysfs/file.c')
-rw-r--r--fs/sysfs/file.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/fs/sysfs/file.c b/fs/sysfs/file.c
index a43df04c81f9..acba5835577e 100644
--- a/fs/sysfs/file.c
+++ b/fs/sysfs/file.c
@@ -47,17 +47,6 @@ struct sysfs_open_dirent {
47 struct list_head files; /* goes through sysfs_open_file.list */ 47 struct list_head files; /* goes through sysfs_open_file.list */
48}; 48};
49 49
50struct sysfs_open_file {
51 struct sysfs_dirent *sd;
52 struct file *file;
53 struct mutex mutex;
54 int event;
55 struct list_head list;
56
57 bool mmapped;
58 const struct vm_operations_struct *vm_ops;
59};
60
61static bool sysfs_is_bin(struct sysfs_dirent *sd) 50static bool sysfs_is_bin(struct sysfs_dirent *sd)
62{ 51{
63 return sysfs_type(sd) == SYSFS_KOBJ_BIN_ATTR; 52 return sysfs_type(sd) == SYSFS_KOBJ_BIN_ATTR;