kernfs: implement kernfs_root->supers list
authorTejun Heo <tj@kernel.org>
Wed, 9 Apr 2014 15:07:30 +0000 (11:07 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Apr 2014 18:43:31 +0000 (11:43 -0700)
commit7d568a8383bbb9c1f5167781075906acb2bb1550
treef25a2d70ce8851e991a53ed6391c899320f097a6
parenta798c10faf62a505d24e5f6213fbaf904a39623f
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>
fs/kernfs/dir.c
fs/kernfs/kernfs-internal.h
fs/kernfs/mount.c
include/linux/kernfs.h