From 3aacbe700a50d096d4e63e3fcf9e014ac98f807a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 23 Nov 2004 03:22:35 +0000 Subject: [PATCH] Removed the vnode_store::size field - it's no longer needed. Instead, vm_cache::virtual_size is now used by the file cache code. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10202 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/core/cache/vnode_store.cpp | 8 +++----- src/kernel/core/cache/vnode_store.h | 8 +++----- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/src/kernel/core/cache/vnode_store.cpp b/src/kernel/core/cache/vnode_store.cpp index 57b2b5f508..649c015aff 100644 --- a/src/kernel/core/cache/vnode_store.cpp +++ b/src/kernel/core/cache/vnode_store.cpp @@ -1,7 +1,7 @@ /* -** Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved. -** Distributed under the terms of the Haiku License. -*/ + * Copyright 2004, Axel Dörfler, axeld@pinc-software.de. + * Distributed under the terms of the MIT License. + */ #include "vnode_store.h" @@ -122,8 +122,6 @@ vm_create_vnode_store(void *vnode) store->vm.committed_size = 0; store->vnode = vnode; - store->size = 0; - // the file system will maintain this field through the file cache API return &store->vm; } diff --git a/src/kernel/core/cache/vnode_store.h b/src/kernel/core/cache/vnode_store.h index 4fb36ad793..179bc0ba09 100644 --- a/src/kernel/core/cache/vnode_store.h +++ b/src/kernel/core/cache/vnode_store.h @@ -1,7 +1,7 @@ /* -** Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved. -** Distributed under the terms of the Haiku License. -*/ + * Copyright 2004, Axel Dörfler, axeld@pinc-software.de. + * Distributed under the terms of the MIT License. + */ #ifndef VNODE_STORE_H #define VNODE_STORE_H @@ -12,8 +12,6 @@ struct vnode_store { vm_store vm; void *vnode; - off_t size; - // the file system will maintain this field through the file cache API }; #endif /* VNODE_STORE_H */