xfs: add a sysfs kset
authorBrian Foster <bfoster@redhat.com>
Mon, 14 Jul 2014 21:41:37 +0000 (07:41 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 14 Jul 2014 21:41:37 +0000 (07:41 +1000)
commit3d8712265c26546823b38eb97487262500ff13db
tree12c4aa183462dbd9d2e6c8e3bd961cbd006acf7f
parenta70a4fa528faf6f22adce9a9067d1f4dfc332ade
xfs: add a sysfs kset

Create a sysfs kset to contain all sub-objects associated with the XFS
module. The kset is created and removed on module initialization and
removal respectively. The kset uses fs_obj as a parent. This leads to
the creation of a /sys/fs/xfs directory when the kset exists.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_super.c