kernel/cache: Add VMVnodeCache::Commit().

Does nothing, as Vnode (file) caches don't need to commit memory
at present.
This commit is contained in:
Augustin Cavalier
2024-10-02 15:41:10 -04:00
parent f940c524eb
commit 7f6fe7b354
2 changed files with 9 additions and 0 deletions
+8
View File
@@ -34,6 +34,14 @@ VMVnodeCache::Init(struct vnode* vnode, uint32 allocationFlags)
}
status_t
VMVnodeCache::Commit(off_t size, int priority)
{
// We don't need to commit memory.
return B_OK;
}
bool
VMVnodeCache::HasPage(off_t offset)
{
+1
View File
@@ -18,6 +18,7 @@ public:
status_t Init(struct vnode* vnode,
uint32 allocationFlags);
virtual status_t Commit(off_t size, int priority);
virtual bool HasPage(off_t offset);
virtual status_t Read(off_t offset, const generic_io_vec* vecs,