diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-28 20:29:14 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-28 20:29:14 +0100 |
commit | aa1e209845b496e60b31ad74fed30623b3e9ad39 (patch) | |
tree | a821d997bc7eb9c0b821823731ec0973479d0771 /Kernel/VM/Region.h | |
parent | 651417a08598a8899e14a7975574315d10eb385b (diff) | |
download | serenity-aa1e209845b496e60b31ad74fed30623b3e9ad39.zip |
Kernel: Remove some unnecessary indirection in InodeFile::mmap()
InodeFile now directly calls Process::allocate_region_with_vmobject()
instead of taking an awkward detour via a special Region constructor.
Diffstat (limited to 'Kernel/VM/Region.h')
-rw-r--r-- | Kernel/VM/Region.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Kernel/VM/Region.h b/Kernel/VM/Region.h index 3a96f3616e..60f2cd4d8b 100644 --- a/Kernel/VM/Region.h +++ b/Kernel/VM/Region.h @@ -57,7 +57,6 @@ public: static NonnullOwnPtr<Region> create_user_accessible(const Range&, const StringView& name, u8 access, bool cacheable = true); static NonnullOwnPtr<Region> create_user_accessible(const Range&, NonnullRefPtr<VMObject>, size_t offset_in_vmobject, const StringView& name, u8 access, bool cacheable = true); - static NonnullOwnPtr<Region> create_user_accessible(const Range&, NonnullRefPtr<Inode>, const StringView& name, u8 access, bool cacheable = true); static NonnullOwnPtr<Region> create_kernel_only(const Range&, const StringView& name, u8 access, bool cacheable = true); static NonnullOwnPtr<Region> create_kernel_only(const Range&, NonnullRefPtr<VMObject>, size_t offset_in_vmobject, const StringView& name, u8 access, bool cacheable = true); @@ -163,7 +162,6 @@ public: // NOTE: These are public so we can make<> them. Region(const Range&, const String&, u8 access, bool cacheable); Region(const Range&, NonnullRefPtr<VMObject>, size_t offset_in_vmobject, const String&, u8 access, bool cacheable); - Region(const Range&, NonnullRefPtr<Inode>, const String&, u8 access, bool cacheable); private: Bitmap& ensure_cow_map() const; |