Date:2009-12-01 07:55:10 (10 years 6 months ago)
Author:xiangfu
Commit:2c6d38c835b83bbfb3d57e7ab1a37e2a25c8311b
Message:300-jffs2-summery-vmalloc.patch

Files: fs/jffs2/summary.c (2 diffs)

Change Details

fs/jffs2/summary.c
3232        return -ENOMEM;
3333    }
3434
35    c->summary->sum_buf = kmalloc(sum_size, GFP_KERNEL);
35    c->summary->sum_buf = vmalloc(sum_size);
3636
3737    if (!c->summary->sum_buf) {
3838        JFFS2_WARNING("Can't allocate buffer for writing out summary information!\n");
...... 
5151
5252    jffs2_sum_disable_collecting(c->summary);
5353
54    kfree(c->summary->sum_buf);
54    vfree(c->summary->sum_buf);
5555    c->summary->sum_buf = NULL;
5656
5757    kfree(c->summary);

Archive Download the corresponding diff file



interactive