X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=yaffs_guts.h;h=cfcd16fa6770ce1315e68ee33018213b32080657;hp=506ecd63c5ef9fd470f747a079aac4994a220e22;hb=37fd9ec3587b5c4d497a7682522a9adfab682e51;hpb=f216bcabdaf791aa93ad2e58c1d747d2d8bd6617 diff --git a/yaffs_guts.h b/yaffs_guts.h index 506ecd6..cfcd16f 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.2 2004-11-16 02:36:15 charles Exp $ + * $Id: yaffs_guts.h,v 1.3 2004-12-17 04:39:04 charles Exp $ */ #ifndef __YAFFS_GUTS_H__ @@ -50,6 +50,9 @@ #define YAFFS_BYTES_PER_BLOCK (YAFFS_CHUNKS_PER_BLOCK*YAFFS_BYTES_PER_CHUNK) #endif +#define YAFFS_MIN_YAFFS2_CHUNK_SIZE 1024 +#define YAFFS_MIN_YAFFS2_SPARE_SIZE 32 + #define YAFFS_MAX_CHUNK_ID 0x000FFFFF #define YAFFS_UNUSED_OBJECT_ID 0x0003FFFF @@ -532,9 +535,7 @@ struct yaffs_DeviceStruct struct semaphore sem;// Semaphore for waiting on erasure. struct semaphore grossLock; // Gross locking semaphore - -#endif -#ifdef __KERNEL__ + __u8 * spareBuffer; // For mtdif2 use. Don't know the size of the buffer at compile time so we have to allocate it. void (*putSuperFunc)(struct super_block *sb); #endif