* AcessMicro VFS
* - File IO Passthru's
*/
-#include <common.h>
+#include <acess.h>
#include "vfs.h"
#include "vfs_int.h"
// === GLOBALS ===
int gVFS_NextInodeHandle = 1;
- int gilVFS_InodeCache = 0;
+tShortSpinlock glVFS_InodeCache;
tInodeCache *gVFS_InodeCache = NULL;
// === CODE ===
ent->Next = NULL; ent->FirstNode = NULL;
// Add to list
- LOCK( &gilVFS_InodeCache );
+ SHORTLOCK( &glVFS_InodeCache );
ent->Next = gVFS_InodeCache;
gVFS_InodeCache = ent;
- RELEASE( &gilVFS_InodeCache );
+ SHORTREL( &glVFS_InodeCache );
return gVFS_NextInodeHandle-1;
}
tCachedInode *ent, *prev;
cache = Inode_int_GetFSCache(Handle);
- if(!cache) return;
+ if(!cache) return ;
- if(Inode > cache->MaxCached) return;
+ if(Inode > cache->MaxCached) return ;
// Search Cache
ent = cache->FirstNode;
free(ent);
}
- return;
+ return ;
}
+
+ return ;
}
/**