Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 176505
b: refs/heads/master
c: d2bb7df
h: refs/heads/master
i:
  176503: b2123aa
v: v3
  • Loading branch information
Milan Broz authored and Alasdair G Kergon committed Dec 10, 2009
1 parent edd91a9 commit 9d380a4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 613978f8711c7fd4d0aa856872375d2abd7c92ff
refs/heads/master: d2bb7df8cac647b92f51fb84ae735771e7adbfa7
8 changes: 8 additions & 0 deletions trunk/drivers/md/dm-sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,21 @@ static struct sysfs_ops dm_sysfs_ops = {
.show = dm_attr_show,
};

/*
* The sysfs structure is embedded in md struct, nothing to do here
*/
static void dm_sysfs_release(struct kobject *kobj)
{
}

/*
* dm kobject is embedded in mapped_device structure
* no need to define release function here
*/
static struct kobj_type dm_ktype = {
.sysfs_ops = &dm_sysfs_ops,
.default_attrs = dm_attrs,
.release = dm_sysfs_release
};

/*
Expand Down

0 comments on commit 9d380a4

Please sign in to comment.