X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=fs%2Fxfs%2Fxfs_sysfs.c;h=18dc5eca6c04501a11b20877eb6c6b44164958af;hb=2d7b4cdbb523cd11a978519f8e11895c27f05258;hp=ddd0bf7a474026059a62710b42b7cf90e5757d1e;hpb=b6c0d35772468173b5d3a7f6162079611e68a1e8;p=linux-2.6-block.git diff --git a/fs/xfs/xfs_sysfs.c b/fs/xfs/xfs_sysfs.c index ddd0bf7a4740..18dc5eca6c04 100644 --- a/fs/xfs/xfs_sysfs.c +++ b/fs/xfs/xfs_sysfs.c @@ -10,6 +10,7 @@ #include "xfs_log_format.h" #include "xfs_trans_resv.h" #include "xfs_sysfs.h" +#include "xfs_log.h" #include "xfs_log_priv.h" #include "xfs_mount.h" @@ -63,19 +64,6 @@ static const struct sysfs_ops xfs_sysfs_ops = { .store = xfs_sysfs_object_store, }; -/* - * xfs_mount kobject. The mp kobject also serves as the per-mount parent object - * that is identified by the fsname under sysfs. - */ - -static inline struct xfs_mount * -to_mp(struct kobject *kobject) -{ - struct xfs_kobj *kobj = to_kobj(kobject); - - return container_of(kobj, struct xfs_mount, m_kobj); -} - static struct attribute *xfs_mp_attrs[] = { NULL, };