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:
parent
c74cde918a
commit
1f31156173
7 changed files with 83 additions and 17 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue