Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4781
b: refs/heads/master
c: 336d2ff
h: refs/heads/master
i:
  4779: 94c413e
v: v3
  • Loading branch information
Artem B. Bityuckiy authored and Thomas Gleixner committed Jul 12, 2005
1 parent ea57168 commit 28a8cf4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 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: 1ca70351af02b1f0eb9cd2e7eb7a547f8ad5d893
refs/heads/master: 336d2ff7115bd4391108a16f476c739cb4a505b0
10 changes: 4 additions & 6 deletions trunk/fs/jffs2/readinode.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* For licensing information, see the file 'LICENCE' in this directory.
*
* $Id: readinode.c,v 1.120 2005/07/05 21:03:07 dwmw2 Exp $
* $Id: readinode.c,v 1.124 2005/07/07 15:45:29 dedekind Exp $
*
*/

Expand Down Expand Up @@ -151,18 +151,16 @@ int jffs2_add_full_dnode_to_inode(struct jffs2_sb_info *c, struct jffs2_inode_in

D1(printk(KERN_DEBUG "jffs2_add_full_dnode_to_inode(ino #%u, f %p, fn %p)\n", f->inocache->ino, f, fn));

if (unlikely(!fn->size))
return 0;

newfrag = jffs2_alloc_node_frag();
if (unlikely(!newfrag))
return -ENOMEM;

D2(printk(KERN_DEBUG "adding node %04x-%04x @0x%08x on flash, newfrag *%p\n",
fn->ofs, fn->ofs+fn->size, ref_offset(fn->raw), newfrag));

if (unlikely(!fn->size)) {
jffs2_free_node_frag(newfrag);
return 0;
}

newfrag->ofs = fn->ofs;
newfrag->size = fn->size;
newfrag->node = fn;
Expand Down

0 comments on commit 28a8cf4

Please sign in to comment.