diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-28 20:07:51 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-28 20:07:51 +0100 |
commit | 07a26aece3f0c6987091c181a6436dbc3fa3fdf2 (patch) | |
tree | 3feae986726828b9b85b17b2d202ba9a1c48b02a /Kernel/FileSystem | |
parent | 46256da7b0e70b3f287a7e449b53379b3134041d (diff) | |
download | serenity-07a26aece3f0c6987091c181a6436dbc3fa3fdf2.zip |
Kernel: Rename InodeVMObject => SharedInodeVMObject
Diffstat (limited to 'Kernel/FileSystem')
-rw-r--r-- | Kernel/FileSystem/Inode.cpp | 14 | ||||
-rw-r--r-- | Kernel/FileSystem/Inode.h | 8 |
2 files changed, 11 insertions, 11 deletions
diff --git a/Kernel/FileSystem/Inode.cpp b/Kernel/FileSystem/Inode.cpp index 498aaa3666..862df5f5ec 100644 --- a/Kernel/FileSystem/Inode.cpp +++ b/Kernel/FileSystem/Inode.cpp @@ -29,7 +29,7 @@ #include <Kernel/FileSystem/Inode.h> #include <Kernel/FileSystem/InodeWatcher.h> #include <Kernel/Net/LocalSocket.h> -#include <Kernel/VM/InodeVMObject.h> +#include <Kernel/VM/SharedInodeVMObject.h> #include <Kernel/FileSystem/VirtualFileSystem.h> #include <Kernel/FileSystem/Custody.h> @@ -128,14 +128,14 @@ void Inode::will_be_destroyed() void Inode::inode_contents_changed(off_t offset, ssize_t size, const u8* data) { - if (m_vmobject) - m_vmobject->inode_contents_changed({}, offset, size, data); + if (m_shared_vmobject) + m_shared_vmobject->inode_contents_changed({}, offset, size, data); } void Inode::inode_size_changed(size_t old_size, size_t new_size) { - if (m_vmobject) - m_vmobject->inode_size_changed({}, old_size, new_size); + if (m_shared_vmobject) + m_shared_vmobject->inode_size_changed({}, old_size, new_size); } int Inode::set_atime(time_t) @@ -163,9 +163,9 @@ KResult Inode::decrement_link_count() return KResult(-ENOTIMPL); } -void Inode::set_vmobject(VMObject& vmobject) +void Inode::set_shared_vmobject(SharedInodeVMObject& vmobject) { - m_vmobject = vmobject.make_weak_ptr(); + m_shared_vmobject = vmobject.make_weak_ptr(); } bool Inode::bind_socket(LocalSocket& socket) diff --git a/Kernel/FileSystem/Inode.h b/Kernel/FileSystem/Inode.h index 6dc4678d97..0a0884a37d 100644 --- a/Kernel/FileSystem/Inode.h +++ b/Kernel/FileSystem/Inode.h @@ -99,9 +99,9 @@ public: void will_be_destroyed(); - void set_vmobject(VMObject&); - InodeVMObject* vmobject() { return m_vmobject.ptr(); } - const InodeVMObject* vmobject() const { return m_vmobject.ptr(); } + void set_shared_vmobject(SharedInodeVMObject&); + SharedInodeVMObject* shared_vmobject() { return m_shared_vmobject.ptr(); } + const SharedInodeVMObject* shared_vmobject() const { return m_shared_vmobject.ptr(); } static void sync(); @@ -125,7 +125,7 @@ protected: private: FS& m_fs; unsigned m_index { 0 }; - WeakPtr<InodeVMObject> m_vmobject; + WeakPtr<SharedInodeVMObject> m_shared_vmobject; RefPtr<LocalSocket> m_socket; HashTable<InodeWatcher*> m_watchers; bool m_metadata_dirty { false }; |