From 1c1d16b3447cf06b258d52db375118bd71e3e981 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Mon, 19 Apr 2010 20:41:05 +0000 Subject: [PATCH] Adjusted indentation. No functional change. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36360 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/cache/vnode_store.h | 54 ++++++++++++++------------- 1 file changed, 29 insertions(+), 25 deletions(-) diff --git a/src/system/kernel/cache/vnode_store.h b/src/system/kernel/cache/vnode_store.h index 73e200a0db..1b9275bf1c 100644 --- a/src/system/kernel/cache/vnode_store.h +++ b/src/system/kernel/cache/vnode_store.h @@ -1,5 +1,5 @@ /* - * Copyright 2008-2009, Ingo Weinhold, ingo_weinhold@gmx.de. + * Copyright 2008-2010, Ingo Weinhold, ingo_weinhold@gmx.de. * Copyright 2004-2007, Axel Dörfler, axeld@pinc-software.de. * Distributed under the terms of the MIT License. */ @@ -15,38 +15,42 @@ struct file_cache_ref; class VMVnodeCache : public VMCache { public: - status_t Init(struct vnode *vnode, uint32 allocationFlags); + status_t Init(struct vnode *vnode, + uint32 allocationFlags); - virtual bool HasPage(off_t offset); + virtual bool HasPage(off_t offset); - virtual status_t Read(off_t offset, const iovec *vecs, size_t count, - uint32 flags, size_t *_numBytes); - virtual status_t Write(off_t offset, const iovec *vecs, size_t count, - uint32 flags, size_t *_numBytes); - virtual status_t WriteAsync(off_t offset, const iovec* vecs, - size_t count, size_t numBytes, uint32 flags, - AsyncIOCallback* callback); - virtual bool CanWritePage(off_t offset); + virtual status_t Read(off_t offset, const iovec *vecs, + size_t count, uint32 flags, + size_t *_numBytes); + virtual status_t Write(off_t offset, const iovec *vecs, + size_t count, uint32 flags, + size_t *_numBytes); + virtual status_t WriteAsync(off_t offset, const iovec* vecs, + size_t count, size_t numBytes, uint32 flags, + AsyncIOCallback* callback); + virtual bool CanWritePage(off_t offset); - virtual status_t Fault(struct VMAddressSpace *aspace, off_t offset); + virtual status_t Fault(struct VMAddressSpace *aspace, + off_t offset); - virtual status_t AcquireUnreferencedStoreRef(); - virtual void AcquireStoreRef(); - virtual void ReleaseStoreRef(); + virtual status_t AcquireUnreferencedStoreRef(); + virtual void AcquireStoreRef(); + virtual void ReleaseStoreRef(); - void SetFileCacheRef(file_cache_ref* ref) - { fFileCacheRef = ref; } - file_cache_ref* FileCacheRef() const - { return fFileCacheRef; } + void SetFileCacheRef(file_cache_ref* ref) + { fFileCacheRef = ref; } + file_cache_ref* FileCacheRef() const + { return fFileCacheRef; } - void VnodeDeleted() { fVnodeDeleted = true; } + void VnodeDeleted() { fVnodeDeleted = true; } private: - struct vnode* fVnode; - file_cache_ref* fFileCacheRef; - ino_t fInode; - dev_t fDevice; - volatile bool fVnodeDeleted; + struct vnode* fVnode; + file_cache_ref* fFileCacheRef; + ino_t fInode; + dev_t fDevice; + volatile bool fVnodeDeleted; };