mtd/fs/jffs2 scan.c,1.105,1.106
David Woodhouse
dwmw2 at infradead.org
Tue Oct 28 12:01:16 EST 2003
Update of /home/cvs/mtd/fs/jffs2
In directory phoenix.infradead.org:/tmp/cvs-serv4155
Modified Files:
scan.c
Log Message:
Set up c->highest_ino in jffs2_scan_make_ino_cache() rather than
jffs2_build_inode_pass1().
Index: scan.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/scan.c,v
retrieving revision 1.105
retrieving revision 1.106
diff -u -r1.105 -r1.106
--- scan.c 16 Oct 2003 09:17:17 -0000 1.105
+++ scan.c 28 Oct 2003 17:01:13 -0000 1.106
@@ -634,6 +634,9 @@
if (ic)
return ic;
+ if (ino > c->highest_ino)
+ c->highest_ino = ino;
+
ic = jffs2_alloc_inode_cache();
if (!ic) {
printk(KERN_NOTICE "jffs2_scan_make_inode_cache(): allocation of inode cache failed\n");
@@ -645,7 +648,7 @@
ic->nodes = (void *)ic;
jffs2_add_ino_cache(c, ic);
if (ino == 1)
- ic->nlink=1;
+ ic->nlink = 1;
return ic;
}
More information about the linux-mtd-cvs
mailing list