projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ramips: remove 2.6.3[24] support
[openwrt.git]
/
target
/
linux
/
generic
/
patches-2.6.37
/
065-rootfs_split.patch
diff --git
a/target/linux/generic/patches-2.6.37/065-rootfs_split.patch
b/target/linux/generic/patches-2.6.37/065-rootfs_split.patch
index
b8fcd0c
..
a048395
100644
(file)
--- a/
target/linux/generic/patches-2.6.37/065-rootfs_split.patch
+++ b/
target/linux/generic/patches-2.6.37/065-rootfs_split.patch
@@
-37,7
+37,7
@@
/*
* MTD methods which simply translate the effective address and pass through
/*
* MTD methods which simply translate the effective address and pass through
-@@ -618,6 +620,15
0
@@ int mtd_del_partition(struct mtd_info *m
+@@ -618,6 +620,15
3
@@ int mtd_del_partition(struct mtd_info *m
}
EXPORT_SYMBOL_GPL(mtd_del_partition);
}
EXPORT_SYMBOL_GPL(mtd_del_partition);
@@
-92,8
+92,7
@@
+{
+ struct mtd_partition *dpart;
+ struct mtd_part *slave = NULL;
+{
+ struct mtd_partition *dpart;
+ struct mtd_part *slave = NULL;
-+ int split_offset = 0;
-+ int ret;
++ int ret, split_offset = 0;
+
+ ret = split_squashfs(master, part->offset, &split_offset);
+ if (ret)
+
+ ret = split_squashfs(master, part->offset, &split_offset);
+ if (ret)
@@
-123,10
+122,14
@@
+ ROOTFS_SPLIT_NAME, dpart->offset, dpart->size);
+
+ slave = allocate_partition(master, dpart, 0, split_offset);
+ ROOTFS_SPLIT_NAME, dpart->offset, dpart->size);
+
+ slave = allocate_partition(master, dpart, 0, split_offset);
-+ if (!slave) {
-+ kfree(dpart);
-+ return -ENOMEM;
-+ }
++ if (IS_ERR(slave))
++ return PTR_ERR(slave);
++ mutex_lock(&mtd_partitions_mutex);
++ list_add(&slave->list, &mtd_partitions);
++ mutex_unlock(&mtd_partitions_mutex);
++
++ add_mtd_device(&slave->mtd);
++
+ rpart->split = &slave->mtd;
+
+ return 0;
+ rpart->split = &slave->mtd;
+
+ return 0;
@@
-188,7
+191,7
@@
/*
* This function, given a master MTD object and a partition table, creates
* and registers slave MTD objects which are bound to the master according to
/*
* This function, given a master MTD object and a partition table, creates
* and registers slave MTD objects which are bound to the master according to
-@@ -633,7 +7
79
,7 @@ int add_mtd_partitions(struct mtd_info *
+@@ -633,7 +7
82
,7 @@ int add_mtd_partitions(struct mtd_info *
{
struct mtd_part *slave;
uint64_t cur_offset = 0;
{
struct mtd_part *slave;
uint64_t cur_offset = 0;
@@
-197,7
+200,7
@@
printk(KERN_NOTICE "Creating %d MTD partitions on \"%s\":\n", nbparts, master->name);
printk(KERN_NOTICE "Creating %d MTD partitions on \"%s\":\n", nbparts, master->name);
-@@ -648,6 +79
4
,21 @@ int add_mtd_partitions(struct mtd_info *
+@@ -648,6 +79
7
,21 @@ int add_mtd_partitions(struct mtd_info *
add_mtd_device(&slave->mtd);
add_mtd_device(&slave->mtd);
@@
-219,7
+222,7
@@
cur_offset = slave->offset + slave->mtd.size;
}
cur_offset = slave->offset + slave->mtd.size;
}
-@@ -655,6 +81
6
,32 @@ int add_mtd_partitions(struct mtd_info *
+@@ -655,6 +81
9
,32 @@ int add_mtd_partitions(struct mtd_info *
}
EXPORT_SYMBOL(add_mtd_partitions);
}
EXPORT_SYMBOL(add_mtd_partitions);
This page took
0.021705 seconds
and
4
git commands to generate.