dm-sysfs.c (be35f486108227e10fe5d96fd42fb2b344c59983) dm-sysfs.c (2995fa78e423d7193f3b57835f6c1c75006a0315)
1/*
2 * Copyright (C) 2008 Red Hat, Inc. All rights reserved.
3 *
4 * This file is released under the GPL.
5 */
6
7#include <linux/sysfs.h>
8#include <linux/dm-ioctl.h>

--- 65 unchanged lines hidden (view full) ---

74 &dm_attr_suspended.attr,
75 NULL,
76};
77
78static const struct sysfs_ops dm_sysfs_ops = {
79 .show = dm_attr_show,
80};
81
1/*
2 * Copyright (C) 2008 Red Hat, Inc. All rights reserved.
3 *
4 * This file is released under the GPL.
5 */
6
7#include <linux/sysfs.h>
8#include <linux/dm-ioctl.h>

--- 65 unchanged lines hidden (view full) ---

74 &dm_attr_suspended.attr,
75 NULL,
76};
77
78static const struct sysfs_ops dm_sysfs_ops = {
79 .show = dm_attr_show,
80};
81
82static void dm_kobject_release(struct kobject *kobj)
83{
84 complete(dm_get_completion_from_kobject(kobj));
85}
86
87/*
88 * dm kobject is embedded in mapped_device structure
89 * no need to define release function here
90 */
91static struct kobj_type dm_ktype = {
92 .sysfs_ops = &dm_sysfs_ops,
93 .default_attrs = dm_attrs,
94 .release = dm_kobject_release,

--- 22 unchanged lines hidden ---
82/*
83 * dm kobject is embedded in mapped_device structure
84 * no need to define release function here
85 */
86static struct kobj_type dm_ktype = {
87 .sysfs_ops = &dm_sysfs_ops,
88 .default_attrs = dm_attrs,
89 .release = dm_kobject_release,

--- 22 unchanged lines hidden ---