Changeset 501 for Whitix/branches/hybrid
- Timestamp:
- 05/13/08 23:59:51 (4 months ago)
- Files:
-
- 1 modified
-
Whitix/branches/hybrid/fs/vfs/vcache.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Whitix/branches/hybrid/fs/vfs/vcache.c
r412 r501 19 19 #include <fs/vfs.h> 20 20 #include <malloc.h> 21 #include <module.h> 21 22 #include <slab.h> 22 23 #include <task.h> … … 119 120 return NULL; 120 121 121 /* Find if there is already a vnode with said id and filesystem by 122 iterating through the vnode list */ 123 122 /* Find if there is already a vnode with the given id and superblock by 123 iterating through the vNode list */ 124 124 if ((curr=VNodeFind(superBlock,id))) 125 125 return curr; 126 126 127 /* If not, allocate it. VNodeAlloc calls the superblock's ReadVNode function, 128 * which fills in the vNode's information. */ 127 129 return VNodeAlloc(superBlock,id); 128 130 } 129 131 132 SYMBOL_EXPORT(VNodeGet); 133 134 /*********************************************************************** 135 * 136 * FUNCTION: VNodeGetEmpty 137 * 138 * DESCRIPTION: Create an empty vNode. 139 * 140 * PARAMETERS: None 141 * 142 * RETURNS: A new vNode, created using MemCacheAlloc. 143 * 144 ***********************************************************************/ 145 130 146 struct VNode* VNodeGetEmpty() 131 147 { 132 148 return MemCacheAlloc(vNodeCache); 133 149 } 150 151 SYMBOL_EXPORT(VNodeGetEmpty); 134 152 135 153 /***********************************************************************
