Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 313
b: refs/heads/master
c: b41148c
h: refs/heads/master
i:
  311: 4a57dbd
v: v3
  • Loading branch information
kay.sievers@vrfy.org authored and Greg KH committed Apr 19, 2005
1 parent 5275918 commit 486bdff
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 0700f56bbca56bc930aab717bc5086336991441f
refs/heads/master: b41148c0d8d2fa0c36cebd9ba3ee4cfc0dc7cb9a
2 changes: 2 additions & 0 deletions trunk/fs/partitions/check.c
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ void register_disk(struct gendisk *disk)
if ((err = kobject_add(&disk->kobj)))
return;
disk_sysfs_symlinks(disk);
kobject_hotplug(&disk->kobj, KOBJ_ADD);

/* No minors to use for partitions */
if (disk->minors == 1) {
Expand Down Expand Up @@ -441,5 +442,6 @@ void del_gendisk(struct gendisk *disk)
sysfs_remove_link(&disk->driverfs_dev->kobj, "block");
put_device(disk->driverfs_dev);
}
kobject_hotplug(&disk->kobj, KOBJ_REMOVE);
kobject_del(&disk->kobj);
}

0 comments on commit 486bdff

Please sign in to comment.