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)
commitbaff4e44b92aad363dcce176b907a369ee8b348e
tree273b69069917ee59eeed0472b34a590a519c3b9b
parenta31b1d3d89e40f585a1c6745b066774ee3263eb2
xfs: add xlog sysfs kobject and attribute handlers

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