diff options
author | Tejun Heo <tj@kernel.org> | 2014-04-09 11:07:30 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-04-25 14:43:31 -0400 |
commit | 7d568a8383bbb9c1f5167781075906acb2bb1550 (patch) | |
tree | f25a2d70ce8851e991a53ed6391c899320f097a6 /include/linux/kernfs.h | |
parent | a798c10faf62a505d24e5f6213fbaf904a39623f (diff) |
kernfs: implement kernfs_root->supers list
Currently, there's no way to find out which super_blocks are
associated with a given kernfs_root. Let's implement it - the planned
inotify extension to kernfs_notify() needs it.
Make kernfs_super_info point back to the super_block and chain it at
kernfs_root->supers.
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/kernfs.h')
-rw-r--r-- | include/linux/kernfs.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/kernfs.h b/include/linux/kernfs.h index b0122dc6f96a..589318b73e61 100644 --- a/include/linux/kernfs.h +++ b/include/linux/kernfs.h | |||
@@ -144,6 +144,10 @@ struct kernfs_root { | |||
144 | /* private fields, do not use outside kernfs proper */ | 144 | /* private fields, do not use outside kernfs proper */ |
145 | struct ida ino_ida; | 145 | struct ida ino_ida; |
146 | struct kernfs_syscall_ops *syscall_ops; | 146 | struct kernfs_syscall_ops *syscall_ops; |
147 | |||
148 | /* list of kernfs_super_info of this root, protected by kernfs_mutex */ | ||
149 | struct list_head supers; | ||
150 | |||
147 | wait_queue_head_t deactivate_waitq; | 151 | wait_queue_head_t deactivate_waitq; |
148 | }; | 152 | }; |
149 | 153 | ||