X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=yaffs_guts.h;h=aaeda26e1c29703f36dee9560b0d647c0a890766;hp=7bf46c1264678b51a1c5df270c1e82d5563173fd;hb=781662fbb93ffe509823a17779d9fbd41d343f18;hpb=bd35c2f6448ff816f8aa04b644eab3b648dab6df diff --git a/yaffs_guts.h b/yaffs_guts.h index 7bf46c1..aaeda26 100644 --- a/yaffs_guts.h +++ b/yaffs_guts.h @@ -14,7 +14,7 @@ * * Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL. * - * $Id: yaffs_guts.h,v 1.18 2006-01-27 00:44:10 charles Exp $ + * $Id: yaffs_guts.h,v 1.20 2006-03-08 07:59:20 charles Exp $ */ #ifndef __YAFFS_GUTS_H__ @@ -386,13 +386,14 @@ struct yaffs_ObjectStruct { * object might be created before the data * is available (ie. file data records appear before the header). */ - __u8 serial; /* serial number of chunk in NAND. Cached here */ + __u8 lazyLoaded:1; /* This object has been lazy loaded and is missing some detail */ __u8 deferedFree:1; /* For Linux kernel. Object is removed from NAND, but is * still in the inode cache. Free of object is defered. * until the inode is released. */ + __u8 serial; /* serial number of chunk in NAND. Cached here */ __u16 sum; /* sum of the name to speed searching */ struct yaffs_DeviceStruct *myDev; /* The device I'm on */ @@ -674,6 +675,8 @@ static Y_INLINE yaffs_BlockInfo *yaffs_GetBlockInfo(yaffs_Device * dev, int blk) int yaffs_GutsInitialise(yaffs_Device * dev); void yaffs_Deinitialise(yaffs_Device * dev); +void yaffs_FlushEntireDeviceCache(yaffs_Device *dev); + int yaffs_GetNumberOfFreeChunks(yaffs_Device * dev); int yaffs_RenameObject(yaffs_Object * oldDir, const YCHAR * oldName,