diff options
author | Todd Poynor <tpoynor@mvista.com> | 2005-01-19 14:22:04 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@mtd.linutronix.de> | 2005-05-23 05:30:31 -0400 |
commit | 8fabed4a0f78623236c035de0984beeacb8096d8 (patch) | |
tree | a38636004739a5cedece1cd95710ef38aabe06d4 /fs/jffs2 | |
parent | 15266bb74d0156556f9541c9817b778286ffe5d6 (diff) |
[JFFS2] Avoid warning for empty filesystems
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>
Diffstat (limited to 'fs/jffs2')
-rw-r--r-- | fs/jffs2/nodelist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/jffs2/nodelist.c b/fs/jffs2/nodelist.c index cd6a8bd13e0b..3c6d93c8ea0a 100644 --- a/fs/jffs2/nodelist.c +++ b/fs/jffs2/nodelist.c | |||
@@ -7,7 +7,7 @@ | |||
7 | * | 7 | * |
8 | * For licensing information, see the file 'LICENCE' in this directory. | 8 | * For licensing information, see the file 'LICENCE' in this directory. |
9 | * | 9 | * |
10 | * $Id: nodelist.c,v 1.90 2004/12/08 17:59:20 dwmw2 Exp $ | 10 | * $Id: nodelist.c,v 1.92 2005/01/19 19:22:00 tpoynor Exp $ |
11 | * | 11 | * |
12 | */ | 12 | */ |
13 | 13 | ||
@@ -127,7 +127,7 @@ int jffs2_get_inode_nodes(struct jffs2_sb_info *c, struct jffs2_inode_info *f, | |||
127 | 127 | ||
128 | valid_ref = jffs2_first_valid_node(f->inocache->nodes); | 128 | valid_ref = jffs2_first_valid_node(f->inocache->nodes); |
129 | 129 | ||
130 | if (!valid_ref) | 130 | if (!valid_ref && (f->inocache->ino != 1)) |
131 | printk(KERN_WARNING "Eep. No valid nodes for ino #%u\n", f->inocache->ino); | 131 | printk(KERN_WARNING "Eep. No valid nodes for ino #%u\n", f->inocache->ino); |
132 | 132 | ||
133 | while (valid_ref) { | 133 | while (valid_ref) { |