/* * Copyright (c) 2020, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #include #include namespace Kernel::Memory { ErrorOr> PrivateInodeVMObject::try_create_with_inode(Inode& inode) { return adopt_nonnull_ref_or_enomem(new (nothrow) PrivateInodeVMObject(inode, inode.size())); } ErrorOr> PrivateInodeVMObject::try_clone() { return adopt_nonnull_ref_or_enomem(new (nothrow) PrivateInodeVMObject(*this)); } PrivateInodeVMObject::PrivateInodeVMObject(Inode& inode, size_t size) : InodeVMObject(inode, size) { } PrivateInodeVMObject::PrivateInodeVMObject(PrivateInodeVMObject const& other) : InodeVMObject(other) { } PrivateInodeVMObject::~PrivateInodeVMObject() { } }