X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FKernel%2Fvfs%2Fhandle.c;h=6173c29ade9a15b5cf50449c8347c04eba9ad247;hb=c34752b7ccc945a70a2d9b1e505aa4a4de43163b;hp=35aa00c859a69a7171ac56ca5ee8eab8417e9d69;hpb=015f48988e0ff398409d71dfc692005ab439490a;p=tpg%2Facess2.git diff --git a/KernelLand/Kernel/vfs/handle.c b/KernelLand/Kernel/vfs/handle.c index 35aa00c8..6173c29a 100644 --- a/KernelLand/Kernel/vfs/handle.c +++ b/KernelLand/Kernel/vfs/handle.c @@ -16,26 +16,12 @@ #define MAX_KERNEL_FILES 128 // === PROTOTYPES === -inline void _ReferenceNode(tVFS_Node *Node); // === GLOBALS === tVFS_Handle *gaUserHandles = (void*)MM_PPD_HANDLES; tVFS_Handle *gaKernelHandles = (void*)MM_KERNEL_VFS; // === CODE === -inline void _ReferenceNode(tVFS_Node *Node) -{ - if( !MM_GetPhysAddr(Node->Type) ) { - Log_Error("VFS", "Node %p's type is invalid (%p bad pointer) - %P corrupted", - Node, Node->Type, MM_GetPhysAddr(&Node->Type)); - return ; - } - if( Node->Type && Node->Type->Reference ) - Node->Type->Reference( Node ); - else - Node->ReferenceCount ++; -} - /** * \fn tVFS_Handle *VFS_GetHandle(int FD) * \brief Gets a pointer to the handle information structure