Skip to content

Commit

Permalink
[JFFS2] Avoid warning for empty filesystems
Browse files Browse the repository at this point in the history
Avoid "Eep. No valid nodes for ino #1" message for just-created filesystem.

Signed-off-by: Todd Poynor <tpoynor@mvista.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Todd Poynor authored and Thomas Gleixner committed May 23, 2005
1 parent 15266bb commit 8fabed4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/jffs2/nodelist.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: nodelist.c,v 1.90 2004/12/08 17:59:20 dwmw2 Exp $
* $Id: nodelist.c,v 1.92 2005/01/19 19:22:00 tpoynor Exp $
*
*/

Expand Down Expand Up @@ -127,7 +127,7 @@ int jffs2_get_inode_nodes(struct jffs2_sb_info *c, struct jffs2_inode_info *f,

valid_ref = jffs2_first_valid_node(f->inocache->nodes);

if (!valid_ref)
if (!valid_ref && (f->inocache->ino != 1))
printk(KERN_WARNING "Eep. No valid nodes for ino #%u\n", f->inocache->ino);

while (valid_ref) {
Expand Down

0 comments on commit 8fabed4

Please sign in to comment.