mtd/fs/jffs2 write.c,1.79,1.80

David Woodhouse dwmw2 at infradead.org
Tue Jan 27 08:21:52 EST 2004


Update of /home/cvs/mtd/fs/jffs2
In directory phoenix.infradead.org:/tmp/cvs-serv14344

Modified Files:
	write.c 
Log Message:
Fix bug noted by Howard Gray; dirents belong to, and should dirty, the _parent_
inode, not the child (which may be zero in the case of an unlink).


Index: write.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/write.c,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -r1.79 -r1.80
--- write.c	3 Dec 2003 09:41:03 -0000	1.79
+++ write.c	27 Jan 2004 13:21:50 -0000	1.80
@@ -279,7 +279,7 @@
 	raw->next_phys = NULL;
 
 	ret = jffs2_flash_writev(c, vecs, 2, flash_ofs, &retlen,
-				 (alloc_mode==ALLOC_GC)?0:fd->ino);
+				 (alloc_mode==ALLOC_GC)?0:je32_to_cpu(rd->pino));
 	if (ret || (retlen != sizeof(*rd) + namelen)) {
 		printk(KERN_NOTICE "Write of %zd bytes at 0x%08x failed. returned %d, retlen %zd\n", 
 			       sizeof(*rd)+namelen, flash_ofs, ret, retlen);




More information about the linux-mtd-cvs mailing list