From: charles Date: Tue, 5 Apr 2005 03:49:16 +0000 (+0000) Subject: add short op caching to Linux fs X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs%2F.git;a=commitdiff_plain;h=8d2f9766d282056fa46fabe30100cb61f2106694 add short op caching to Linux fs --- diff --git a/yaffs_fs.c b/yaffs_fs.c index a00ef1b..e06b080 100644 --- a/yaffs_fs.c +++ b/yaffs_fs.c @@ -29,7 +29,7 @@ */ -const char *yaffs_fs_c_version = "$Id: yaffs_fs.c,v 1.37 2005-01-06 23:28:34 charles Exp $"; +const char *yaffs_fs_c_version = "$Id: yaffs_fs.c,v 1.38 2005-04-05 03:49:16 charles Exp $"; extern const char *yaffs_guts_c_version; @@ -1323,6 +1323,7 @@ static struct super_block *yaffs_internal_read_super(int useRam, struct super_bl dev->nChunksPerBlock = YAFFS_CHUNKS_PER_BLOCK; dev->nBytesPerChunk = YAFFS_BYTES_PER_CHUNK; dev->nReservedBlocks = 5; + dev->nShortOpCaches = 10; // Enable short op caching dev->writeChunkToNAND = nandemul_WriteChunkToNAND; dev->readChunkFromNAND = nandemul_ReadChunkFromNAND; @@ -1582,6 +1583,7 @@ static char * yaffs_dump_dev(char *buf,yaffs_Device *dev,char *name) buf +=sprintf(buf,"nUnlinkedFiles..... %d\n",dev->nUnlinkedFiles); buf +=sprintf(buf,"nBackgroudDeletions %d\n",dev->nBackgroundDeletions); buf +=sprintf(buf,"useNANDECC......... %d\n",dev->useNANDECC); + buf +=sprintf(buf,"nShortOpCaches..... %d\n",dev->nShortOpCaches); return buf;