aboutsummaryrefslogtreecommitdiffstats
path: root/fs/partitions/check.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/partitions/check.c')
-rw-r--r--fs/partitions/check.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/fs/partitions/check.c b/fs/partitions/check.c
index 8a7d0035ad7a..9a3a058f3553 100644
--- a/fs/partitions/check.c
+++ b/fs/partitions/check.c
@@ -34,6 +34,7 @@
34#include "ultrix.h" 34#include "ultrix.h"
35#include "efi.h" 35#include "efi.h"
36#include "karma.h" 36#include "karma.h"
37#include "sysv68.h"
37 38
38#ifdef CONFIG_BLK_DEV_MD 39#ifdef CONFIG_BLK_DEV_MD
39extern void md_autodetect_dev(dev_t dev); 40extern void md_autodetect_dev(dev_t dev);
@@ -105,6 +106,9 @@ static int (*check_part[])(struct parsed_partitions *, struct block_device *) =
105#ifdef CONFIG_KARMA_PARTITION 106#ifdef CONFIG_KARMA_PARTITION
106 karma_partition, 107 karma_partition,
107#endif 108#endif
109#ifdef CONFIG_SYSV68_PARTITION
110 sysv68_partition,
111#endif
108 NULL 112 NULL
109}; 113};
110 114
@@ -312,7 +316,7 @@ static struct attribute * default_attrs[] = {
312 NULL, 316 NULL,
313}; 317};
314 318
315extern struct subsystem block_subsys; 319extern struct kset block_subsys;
316 320
317static void part_release(struct kobject *kobj) 321static void part_release(struct kobject *kobj)
318{ 322{
@@ -388,7 +392,7 @@ void add_partition(struct gendisk *disk, int part, sector_t start, sector_t len,
388 kobject_add(&p->kobj); 392 kobject_add(&p->kobj);
389 if (!disk->part_uevent_suppress) 393 if (!disk->part_uevent_suppress)
390 kobject_uevent(&p->kobj, KOBJ_ADD); 394 kobject_uevent(&p->kobj, KOBJ_ADD);
391 sysfs_create_link(&p->kobj, &block_subsys.kset.kobj, "subsystem"); 395 sysfs_create_link(&p->kobj, &block_subsys.kobj, "subsystem");
392 if (flags & ADDPART_FLAG_WHOLEDISK) { 396 if (flags & ADDPART_FLAG_WHOLEDISK) {
393 static struct attribute addpartattr = { 397 static struct attribute addpartattr = {
394 .name = "whole_disk", 398 .name = "whole_disk",
@@ -444,7 +448,7 @@ static int disk_sysfs_symlinks(struct gendisk *disk)
444 goto err_out_dev_link; 448 goto err_out_dev_link;
445 } 449 }
446 450
447 err = sysfs_create_link(&disk->kobj, &block_subsys.kset.kobj, 451 err = sysfs_create_link(&disk->kobj, &block_subsys.kobj,
448 "subsystem"); 452 "subsystem");
449 if (err) 453 if (err)
450 goto err_out_disk_name_lnk; 454 goto err_out_disk_name_lnk;
@@ -569,9 +573,6 @@ unsigned char *read_dev_sector(struct block_device *bdev, sector_t n, Sector *p)
569 page = read_mapping_page(mapping, (pgoff_t)(n >> (PAGE_CACHE_SHIFT-9)), 573 page = read_mapping_page(mapping, (pgoff_t)(n >> (PAGE_CACHE_SHIFT-9)),
570 NULL); 574 NULL);
571 if (!IS_ERR(page)) { 575 if (!IS_ERR(page)) {
572 wait_on_page_locked(page);
573 if (!PageUptodate(page))
574 goto fail;
575 if (PageError(page)) 576 if (PageError(page))
576 goto fail; 577 goto fail;
577 p->v = page; 578 p->v = page;