xfs: add xlog sysfs kobject and attribute handlers
authorBrian Foster <bfoster@redhat.com>
Mon, 14 Jul 2014 22:07:29 +0000 (08:07 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 14 Jul 2014 22:07:29 +0000 (08:07 +1000)
Embed a kobject into the xfs log data structure (xlog). This creates a
'log' subdirectory for every XFS mount instance in sysfs. The lifecycle
of the log kobject is tied to the lifecycle of the log.

Also define a set of generic attribute handlers associated with the log
kobject in preparation for the addition of attributes.

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_log.c
fs/xfs/xfs_log_priv.h
fs/xfs/xfs_sysfs.c
fs/xfs/xfs_sysfs.h

Simple merge
Simple merge
Simple merge
Simple merge