[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] The file 'os/elinux/fs/jffs/inode.c' has been modified.(fwd)




The accompanying log:

O_APPEND bug fixed. Note that the fix causes a buffer flush when a file is
written, a better fix should involve update_vm_cahe() and friends.

I'm not quite sure on how to use update_vm_cache() yet, so this will have to do
for a while...

The diff of the modified file(s):

--- inode.c	2000/07/05 10:02:29	1.78
+++ inode.c	2000/07/10 11:57:28	1.79
@@ -1464,6 +1464,11 @@
 	}
 	inode->i_ctime = inode->i_mtime = CURRENT_TIME;
 	inode->i_dirt = 1;
+
+	/* simonk: fixes the O_APPEND bug, but forces a buffer flush. 
+	   Should probably use update_vm_cache() instead.
+	 */
+	invalidate_inode_pages(inode);
 
 	return written;
 } /* jffs_file_write()  */