Re: [Yaffs] Flush cache on umount

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Todd Poynor
Date:  
To: Charles Manning
CC: yaffs
Subject: Re: [Yaffs] Flush cache on umount
On Wed, Mar 08, 2006 at 09:07:51PM +1300, Charles Manning wrote:
...
> Solution: Flush out the YAFFS cache as part of yaffs_put_super...


Hello Charles -- A modest patch suggested to remove a compile warning.
Thanks -- Todd

Index: yaffs_guts.h
===================================================================
RCS file: /home/aleph1/cvs/yaffs2/yaffs_guts.h,v
retrieving revision 1.20
diff -u -r1.20 yaffs_guts.h
--- yaffs_guts.h    8 Mar 2006 07:59:20 -0000    1.20
+++ yaffs_guts.h    14 Mar 2006 02:26:21 -0000
@@ -704,6 +704,7 @@
 yaffs_Object *yaffs_MknodFile(yaffs_Object * parent, const YCHAR * name,
                   __u32 mode, __u32 uid, __u32 gid);
 int yaffs_FlushFile(yaffs_Object * obj, int updateTime);
+void yaffs_FlushEntireDeviceCache(yaffs_Device *dev);


/* Directory operations */
yaffs_Object *yaffs_MknodDirectory(yaffs_Object * parent, const YCHAR * name,