projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
target/uml: fix host processor type selection on x86_64 (proper fix for [13166])
[openwrt.git]
/
target
/
linux
/
generic-2.6
/
patches-2.6.31
/
065-rootfs_split.patch
diff --git
a/target/linux/generic-2.6/patches-2.6.31/065-rootfs_split.patch
b/target/linux/generic-2.6/patches-2.6.31/065-rootfs_split.patch
index
a642dee
..
7956baf
100644
(file)
--- a/
target/linux/generic-2.6/patches-2.6.31/065-rootfs_split.patch
+++ b/
target/linux/generic-2.6/patches-2.6.31/065-rootfs_split.patch
@@
-207,7
+207,7
@@
+ if (ROOT_DEV == 0) {
+ printk(KERN_NOTICE "mtd: partition \"rootfs\" "
+ "set to be root filesystem\n");
+ if (ROOT_DEV == 0) {
+ printk(KERN_NOTICE "mtd: partition \"rootfs\" "
+ "set to be root filesystem\n");
-+ ROOT_DEV = MKDEV(MTD_BLOCK_MAJOR,
i
);
++ ROOT_DEV = MKDEV(MTD_BLOCK_MAJOR,
slave->mtd.index
);
+ }
+#endif
+#ifdef CONFIG_MTD_ROOTFS_SPLIT
+ }
+#endif
+#ifdef CONFIG_MTD_ROOTFS_SPLIT
@@
-434,7
+434,7
@@
if (devt) {
bdev = open_by_devnum(devt, FMODE_WRITE | FMODE_READ);
}
if (devt) {
bdev = open_by_devnum(devt, FMODE_WRITE | FMODE_READ);
}
-@@ -263,17 +276,9
7
@@ static struct block2mtd_dev *add_device(
+@@ -263,17 +276,9
8
@@ static struct block2mtd_dev *add_device(
#endif
if (IS_ERR(bdev)) {
#endif
if (IS_ERR(bdev)) {
@@
-498,9
+498,10
@@
+ bdev = open_by_devnum(devt, FMODE_WRITE | FMODE_READ);
+ if (!bdev || !bdev->bd_disk)
+ err = -EINVAL;
+ bdev = open_by_devnum(devt, FMODE_WRITE | FMODE_READ);
+ if (!bdev || !bdev->bd_disk)
+ err = -EINVAL;
-+ else {
++#ifndef CONFIG_MTD_BLOCK2MTD_MODULE
++ else
+ err = rescan_partitions(bdev->bd_disk, bdev);
+ err = rescan_partitions(bdev->bd_disk, bdev);
-+
}
++
#endif
+ if (bdev)
+ close_bdev_exclusive(bdev, FMODE_READ|FMODE_WRITE);
+
+ if (bdev)
+ close_bdev_exclusive(bdev, FMODE_READ|FMODE_WRITE);
+
@@
-535,7
+536,7
@@
if (!mtdname)
mtdname = devname;
if (!mtdname)
mtdname = devname;
-@@ -297,6 +39
0
,7 @@ static struct block2mtd_dev *add_device(
+@@ -297,6 +39
1
,7 @@ static struct block2mtd_dev *add_device(
dev->mtd.read = block2mtd_read;
dev->mtd.priv = dev;
dev->mtd.owner = THIS_MODULE;
dev->mtd.read = block2mtd_read;
dev->mtd.priv = dev;
dev->mtd.owner = THIS_MODULE;
This page took
0.027411 seconds
and
4
git commands to generate.