mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-01 11:10:37 +02:00
Allocate jffs2 summery buffer with vmalloc.
This commit is contained in:
parent
a65fb5ef2d
commit
e4334246a3
@ -0,0 +1,22 @@
|
|||||||
|
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);
|
Loading…
Reference in New Issue
Block a user