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:
parent
fba84f08b8
commit
1c1d16b344
54
src/system/kernel/cache/vnode_store.h
vendored
54
src/system/kernel/cache/vnode_store.h
vendored
@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user