1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:48:10 +00:00

Kernel: Add a mode flag to sys$purge and allow purging clean inodes

This commit is contained in:
Andreas Kling 2019-12-29 13:16:53 +01:00
parent c74cde918a
commit 1f31156173
7 changed files with 83 additions and 17 deletions

View file

@ -19,6 +19,8 @@ public:
size_t amount_dirty() const;
size_t amount_clean() const;
int release_all_clean_pages();
private:
explicit InodeVMObject(Inode&);
explicit InodeVMObject(const InodeVMObject&);
@ -29,6 +31,8 @@ private:
virtual bool is_inode() const override { return true; }
int release_all_clean_pages_impl();
NonnullRefPtr<Inode> m_inode;
Bitmap m_dirty_pages;
};