summaryrefslogtreecommitdiff
path: root/Kernel/VM/InodeVMObject.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-08-06 10:45:34 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-06 14:05:58 +0200
commita1d7ebf85adca1550b5d61c8b7ab7fe95217e0e2 (patch)
treedd2e9c08a07ca98694a040ff2c4bd4c86f2741f8 /Kernel/VM/InodeVMObject.h
parent4e8e1b7b3a2cd25ab4b69cebea32232496f4a5d3 (diff)
downloadserenity-a1d7ebf85adca1550b5d61c8b7ab7fe95217e0e2.zip
Kernel: Rename Kernel/VM/ to Kernel/Memory/
This directory isn't just about virtual memory, it's about all kinds of memory management.
Diffstat (limited to 'Kernel/VM/InodeVMObject.h')
-rw-r--r--Kernel/VM/InodeVMObject.h44
1 files changed, 0 insertions, 44 deletions
diff --git a/Kernel/VM/InodeVMObject.h b/Kernel/VM/InodeVMObject.h
deleted file mode 100644
index 85cde2ca1b..0000000000
--- a/Kernel/VM/InodeVMObject.h
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
- *
- * SPDX-License-Identifier: BSD-2-Clause
- */
-
-#pragma once
-
-#include <AK/Bitmap.h>
-#include <Kernel/UnixTypes.h>
-#include <Kernel/VM/VMObject.h>
-
-namespace Kernel {
-
-class InodeVMObject : public VMObject {
-public:
- virtual ~InodeVMObject() override;
-
- Inode& inode() { return *m_inode; }
- Inode const& inode() const { return *m_inode; }
-
- size_t amount_dirty() const;
- size_t amount_clean() const;
-
- int release_all_clean_pages();
-
- u32 writable_mappings() const;
- u32 executable_mappings() const;
-
-protected:
- explicit InodeVMObject(Inode&, size_t);
- explicit InodeVMObject(InodeVMObject const&);
-
- InodeVMObject& operator=(InodeVMObject const&) = delete;
- InodeVMObject& operator=(InodeVMObject&&) = delete;
- InodeVMObject(InodeVMObject&&) = delete;
-
- virtual bool is_inode() const final { return true; }
-
- NonnullRefPtr<Inode> m_inode;
- Bitmap m_dirty_pages;
-};
-
-}