tree a38636004739a5cedece1cd95710ef38aabe06d4
parent 15266bb74d0156556f9541c9817b778286ffe5d6
author Todd Poynor <[EMAIL PROTECTED]> Wed, 19 Jan 2005 19:22:04 +0000
committer Thomas Gleixner <[EMAIL PROTECTED]> Mon, 23 May 2005 11:30:31 +0200

[JFFS2] Avoid warning for empty filesystems

Avoid "Eep. No valid nodes for ino #1" message for just-created filesystem.

Signed-off-by: Todd Poynor <[EMAIL PROTECTED]>
Signed-off-by: Thomas Gleixner <[EMAIL PROTECTED]>

 fs/jffs2/nodelist.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/jffs2/nodelist.c b/fs/jffs2/nodelist.c
--- a/fs/jffs2/nodelist.c
+++ b/fs/jffs2/nodelist.c
@@ -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 $
  *
  */
 
@@ -127,7 +127,7 @@ int jffs2_get_inode_nodes(struct jffs2_s
 
        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) {
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to