diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2010-01-11 04:44:45 +0000 |
---|---|---|
committer | Lars-Peter Clausen <lars@metafoo.de> | 2010-01-11 04:44:45 +0000 |
commit | 541158d5ad4a941d927a397737b6588d2e4db22d (patch) | |
tree | e49a97f18123413611824b8993e9acff9d681bae /target/linux/xburst/patches-2.6.32/300-jffs2-summery-vmalloc.patch | |
parent | db06ca593b3d80ec514ecb2b20d49e3638cd3f0b (diff) | |
download | upstream-541158d5ad4a941d927a397737b6588d2e4db22d.tar.gz upstream-541158d5ad4a941d927a397737b6588d2e4db22d.tar.bz2 upstream-541158d5ad4a941d927a397737b6588d2e4db22d.zip |
Merge xburst target.
SVN-Revision: 19098
Diffstat (limited to 'target/linux/xburst/patches-2.6.32/300-jffs2-summery-vmalloc.patch')
-rw-r--r-- | target/linux/xburst/patches-2.6.32/300-jffs2-summery-vmalloc.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/target/linux/xburst/patches-2.6.32/300-jffs2-summery-vmalloc.patch b/target/linux/xburst/patches-2.6.32/300-jffs2-summery-vmalloc.patch new file mode 100644 index 0000000000..6658584eab --- /dev/null +++ b/target/linux/xburst/patches-2.6.32/300-jffs2-summery-vmalloc.patch @@ -0,0 +1,34 @@ +From d3699249d687dc0b4d8d4e0e5ac3f9405d31b1ac Mon Sep 17 00:00:00 2001 +From: Lars-Peter Clausen <lars@metafoo.de> +Date: Mon, 11 Jan 2010 04:29:47 +0100 +Subject: [PATCH] /opt/Projects/openwrt/target/linux/xburst/patches-2.6.31/300-jffs2-summery-vmalloc.patch + +--- + fs/jffs2/summary.c | 4 ++-- + 1 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/fs/jffs2/summary.c b/fs/jffs2/summary.c +index 6caf1e1..b4882c6 100644 +--- a/fs/jffs2/summary.c ++++ b/fs/jffs2/summary.c +@@ -32,7 +32,7 @@ int jffs2_sum_init(struct jffs2_sb_info *c) + return -ENOMEM; + } + +- c->summary->sum_buf = kmalloc(sum_size, GFP_KERNEL); ++ c->summary->sum_buf = vmalloc(sum_size); + + if (!c->summary->sum_buf) { + JFFS2_WARNING("Can't allocate buffer for writing out summary information!\n"); +@@ -51,7 +51,7 @@ void jffs2_sum_exit(struct jffs2_sb_info *c) + + jffs2_sum_disable_collecting(c->summary); + +- kfree(c->summary->sum_buf); ++ vfree(c->summary->sum_buf); + c->summary->sum_buf = NULL; + + kfree(c->summary); +-- +1.5.6.5 + |