projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
when changing the mac address of a bridge interface, keep member interface addresses...
[openwrt.git]
/
target
/
linux
/
generic-2.6
/
patches-2.6.34
/
065-rootfs_split.patch
diff --git
a/target/linux/generic-2.6/patches-2.6.34/065-rootfs_split.patch
b/target/linux/generic-2.6/patches-2.6.34/065-rootfs_split.patch
index
22b3f5e
..
d70d183
100644
(file)
--- a/
target/linux/generic-2.6/patches-2.6.34/065-rootfs_split.patch
+++ b/
target/linux/generic-2.6/patches-2.6.34/065-rootfs_split.patch
@@
-254,7
+254,7
@@
--- a/drivers/mtd/devices/block2mtd.c
+++ b/drivers/mtd/devices/block2mtd.c
--- a/drivers/mtd/devices/block2mtd.c
+++ b/drivers/mtd/devices/block2mtd.c
-@@ -
29,6 +29
,8 @@ struct block2mtd_dev {
+@@ -
30,6 +30
,8 @@ struct block2mtd_dev {
struct block_device *blkdev;
struct mtd_info mtd;
struct mutex write_mutex;
struct block_device *blkdev;
struct mtd_info mtd;
struct mutex write_mutex;
@@
-263,7
+263,7
@@
};
};
-@@ -8
1,6 +83
,12 @@ static int block2mtd_erase(struct mtd_in
+@@ -8
2,6 +84
,12 @@ static int block2mtd_erase(struct mtd_in
size_t len = instr->len;
int err;
size_t len = instr->len;
int err;
@@
-276,7
+276,7
@@
instr->state = MTD_ERASING;
mutex_lock(&dev->write_mutex);
err = _block2mtd_erase(dev, from, len);
instr->state = MTD_ERASING;
mutex_lock(&dev->write_mutex);
err = _block2mtd_erase(dev, from, len);
-@@ -9
3,6 +101
,10 @@ static int block2mtd_erase(struct mtd_in
+@@ -9
4,6 +102
,10 @@ static int block2mtd_erase(struct mtd_in
instr->state = MTD_ERASE_DONE;
mtd_erase_callback(instr);
instr->state = MTD_ERASE_DONE;
mtd_erase_callback(instr);
@@
-287,7
+287,7
@@
return err;
}
return err;
}
-@@ -10
4,10 +116
,14 @@ static int block2mtd_read(struct mtd_inf
+@@ -10
5,10 +117
,14 @@ static int block2mtd_read(struct mtd_inf
struct page *page;
int index = from >> PAGE_SHIFT;
int offset = from & (PAGE_SIZE-1);
struct page *page;
int index = from >> PAGE_SHIFT;
int offset = from & (PAGE_SIZE-1);
@@
-305,7
+305,7
@@
if (from + len > mtd->size)
len = mtd->size - from;
if (from + len > mtd->size)
len = mtd->size - from;
-@@ -12
2,10 +138
,14 @@ static int block2mtd_read(struct mtd_inf
+@@ -12
3,10 +139
,14 @@ static int block2mtd_read(struct mtd_inf
len = len - cpylen;
page = page_read(dev->blkdev->bd_inode->i_mapping, index);
len = len - cpylen;
page = page_read(dev->blkdev->bd_inode->i_mapping, index);
@@
-324,7
+324,7
@@
memcpy(buf, page_address(page) + offset, cpylen);
page_cache_release(page);
memcpy(buf, page_address(page) + offset, cpylen);
page_cache_release(page);
-@@ -13
6,7 +156
,10 @@ static int block2mtd_read(struct mtd_inf
+@@ -13
7,7 +157
,10 @@ static int block2mtd_read(struct mtd_inf
offset = 0;
index++;
}
offset = 0;
index++;
}
@@
-336,7
+336,7
@@
}
}
-@@ -18
8,12 +211
,22 @@ static int block2mtd_write(struct mtd_in
+@@ -18
9,12 +212
,22 @@ static int block2mtd_write(struct mtd_in
size_t *retlen, const u_char *buf)
{
struct block2mtd_dev *dev = mtd->priv;
size_t *retlen, const u_char *buf)
{
struct block2mtd_dev *dev = mtd->priv;
@@
-363,7
+363,7
@@
if (to + len > mtd->size)
len = mtd->size - to;
if (to + len > mtd->size)
len = mtd->size - to;
-@@ -20
2,6 +235
,9 @@ static int block2mtd_write(struct mtd_in
+@@ -20
3,6 +236
,9 @@ static int block2mtd_write(struct mtd_in
mutex_unlock(&dev->write_mutex);
if (err > 0)
err = 0;
mutex_unlock(&dev->write_mutex);
if (err > 0)
err = 0;
@@
-373,7
+373,7
@@
return err;
}
return err;
}
-@@ -21
0,52 +246
,29 @@ static int block2mtd_write(struct mtd_in
+@@ -21
1,52 +247
,29 @@ static int block2mtd_write(struct mtd_in
static void block2mtd_sync(struct mtd_info *mtd)
{
struct block2mtd_dev *dev = mtd->priv;
static void block2mtd_sync(struct mtd_info *mtd)
{
struct block2mtd_dev *dev = mtd->priv;
@@
-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);
}
-@@ -26
3,17 +276
,98 @@ static struct block2mtd_dev *add_device(
+@@ -26
4,17 +277
,98 @@ static struct block2mtd_dev *add_device(
#endif
if (IS_ERR(bdev)) {
#endif
if (IS_ERR(bdev)) {
@@
-536,7
+536,7
@@
if (!mtdname)
mtdname = devname;
if (!mtdname)
mtdname = devname;
-@@ -29
7,6 +391
,7 @@ static struct block2mtd_dev *add_device(
+@@ -29
8,6 +392
,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.031226 seconds
and
4
git commands to generate.