Adjusted indentation. No functional change.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36360 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2010-04-19 20:41:05 +00:00
parent fba84f08b8
commit 1c1d16b344

View File

@ -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. * Copyright 2004-2007, Axel Dörfler, axeld@pinc-software.de.
* Distributed under the terms of the MIT License. * Distributed under the terms of the MIT License.
*/ */
@ -15,38 +15,42 @@ struct file_cache_ref;
class VMVnodeCache : public VMCache { class VMVnodeCache : public VMCache {
public: 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, virtual status_t Read(off_t offset, const iovec *vecs,
uint32 flags, size_t *_numBytes); size_t count, uint32 flags,
virtual status_t Write(off_t offset, const iovec *vecs, size_t count, size_t *_numBytes);
uint32 flags, size_t *_numBytes); virtual status_t Write(off_t offset, const iovec *vecs,
virtual status_t WriteAsync(off_t offset, const iovec* vecs, size_t count, uint32 flags,
size_t count, size_t numBytes, uint32 flags, size_t *_numBytes);
AsyncIOCallback* callback); virtual status_t WriteAsync(off_t offset, const iovec* vecs,
virtual bool CanWritePage(off_t offset); 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 status_t AcquireUnreferencedStoreRef();
virtual void AcquireStoreRef(); virtual void AcquireStoreRef();
virtual void ReleaseStoreRef(); virtual void ReleaseStoreRef();
void SetFileCacheRef(file_cache_ref* ref) void SetFileCacheRef(file_cache_ref* ref)
{ fFileCacheRef = ref; } { fFileCacheRef = ref; }
file_cache_ref* FileCacheRef() const file_cache_ref* FileCacheRef() const
{ return fFileCacheRef; } { return fFileCacheRef; }
void VnodeDeleted() { fVnodeDeleted = true; } void VnodeDeleted() { fVnodeDeleted = true; }
private: private:
struct vnode* fVnode; struct vnode* fVnode;
file_cache_ref* fFileCacheRef; file_cache_ref* fFileCacheRef;
ino_t fInode; ino_t fInode;
dev_t fDevice; dev_t fDevice;
volatile bool fVnodeDeleted; volatile bool fVnodeDeleted;
}; };