package/grub: build a host grub and a target grub (#7269)
[openwrt.git] / target / linux / xburst / patches-2.6.32 / 300-jffs2-summery-vmalloc.patch
1 From d3699249d687dc0b4d8d4e0e5ac3f9405d31b1ac Mon Sep 17 00:00:00 2001
2 From: Lars-Peter Clausen <lars@metafoo.de>
3 Date: Mon, 11 Jan 2010 04:29:47 +0100
4 Subject: [PATCH] /opt/Projects/openwrt/target/linux/xburst/patches-2.6.31/300-jffs2-summery-vmalloc.patch
5
6 ---
7 fs/jffs2/summary.c | 4 ++--
8 1 files changed, 2 insertions(+), 2 deletions(-)
9
10 --- a/fs/jffs2/summary.c
11 +++ b/fs/jffs2/summary.c
12 @@ -32,7 +32,7 @@ int jffs2_sum_init(struct jffs2_sb_info
13 return -ENOMEM;
14 }
15
16 - c->summary->sum_buf = kmalloc(sum_size, GFP_KERNEL);
17 + c->summary->sum_buf = vmalloc(sum_size);
18
19 if (!c->summary->sum_buf) {
20 JFFS2_WARNING("Can't allocate buffer for writing out summary information!\n");
21 @@ -51,7 +51,7 @@ void jffs2_sum_exit(struct jffs2_sb_info
22
23 jffs2_sum_disable_collecting(c->summary);
24
25 - kfree(c->summary->sum_buf);
26 + vfree(c->summary->sum_buf);
27 c->summary->sum_buf = NULL;
28
29 kfree(c->summary);
This page took 0.055474 seconds and 5 git commands to generate.