Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 231671
b: refs/heads/master
c: 7ddbead
h: refs/heads/master
i:
  231669: b9ce933
  231667: 1693e56
  231663: 9b57585
v: v3
  • Loading branch information
Joe Perches authored and David Woodhouse committed Dec 3, 2010
1 parent 41e32d0 commit 06ec336
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 309b5e4e4154721f8079bc250d2233fd4b3aa039
refs/heads/master: 7ddbead6e6d3c730570a215ab9a6b1d126c54d34
5 changes: 2 additions & 3 deletions trunk/fs/jffs2/build.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,14 +336,13 @@ int jffs2_do_mount_fs(struct jffs2_sb_info *c)
size = sizeof(struct jffs2_eraseblock) * c->nr_blocks;
#ifndef __ECOS
if (jffs2_blocks_use_vmalloc(c))
c->blocks = vmalloc(size);
c->blocks = vzalloc(size);
else
#endif
c->blocks = kmalloc(size, GFP_KERNEL);
c->blocks = kzalloc(size, GFP_KERNEL);
if (!c->blocks)
return -ENOMEM;

memset(c->blocks, 0, size);
for (i=0; i<c->nr_blocks; i++) {
INIT_LIST_HEAD(&c->blocks[i].list);
c->blocks[i].offset = i * c->sector_size;
Expand Down

0 comments on commit 06ec336

Please sign in to comment.