Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 31271
b: refs/heads/master
c: a296418
h: refs/heads/master
i:
  31269: 448597e
  31267: aa2db5d
  31263: f0d6823
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Jun 26, 2006
1 parent 311569f commit 0ae284c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 163 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5c3927dc3468f47b803c9e1bb82cbed2bbd411ab
refs/heads/master: a29641883f57f36424e3219ae9ff48dd6cd34de0
1 change: 0 additions & 1 deletion trunk/fs/partitions/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

obj-y := check.o

obj-$(CONFIG_DEVFS_FS) += devfs.o
obj-$(CONFIG_ACORN_PARTITION) += acorn.o
obj-$(CONFIG_AMIGA_PARTITION) += amiga.o
obj-$(CONFIG_ATARI_PARTITION) += atari.o
Expand Down
26 changes: 5 additions & 21 deletions trunk/fs/partitions/check.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include <linux/devfs_fs_kernel.h>

#include "check.h"
#include "devfs.h"

#include "acorn.h"
#include "amiga.h"
Expand Down Expand Up @@ -161,18 +160,11 @@ check_partition(struct gendisk *hd, struct block_device *bdev)
if (!state)
return NULL;

#ifdef CONFIG_DEVFS_FS
if (hd->devfs_name[0] != '\0') {
printk(KERN_INFO " /dev/%s:", hd->devfs_name);
disk_name(hd, 0, state->name);
printk(KERN_INFO " %s:", state->name);
if (isdigit(state->name[strlen(state->name)-1]))
sprintf(state->name, "p");
}
#endif
else {
disk_name(hd, 0, state->name);
printk(KERN_INFO " %s:", state->name);
if (isdigit(state->name[strlen(state->name)-1]))
sprintf(state->name, "p");
}

state->limit = hd->minors;
i = res = 0;
while (!res && check_part[i]) {
Expand Down Expand Up @@ -423,14 +415,8 @@ void register_disk(struct gendisk *disk)
disk_sysfs_add_subdirs(disk);

/* No minors to use for partitions */
if (disk->minors == 1) {
if (disk->devfs_name[0] != '\0')
devfs_add_disk(disk);
if (disk->minors == 1)
goto exit;
}

/* always add handle for the whole disk */
devfs_add_partitioned(disk);

/* No such device (e.g., media were just removed) */
if (!get_capacity(disk))
Expand Down Expand Up @@ -538,8 +524,6 @@ void del_gendisk(struct gendisk *disk)
disk_stat_set_all(disk, 0);
disk->stamp = 0;

devfs_remove_disk(disk);

kobject_uevent(&disk->kobj, KOBJ_REMOVE);
if (disk->holder_dir)
kobject_unregister(disk->holder_dir);
Expand Down
130 changes: 0 additions & 130 deletions trunk/fs/partitions/devfs.c

This file was deleted.

10 changes: 0 additions & 10 deletions trunk/fs/partitions/devfs.h

This file was deleted.

0 comments on commit 0ae284c

Please sign in to comment.