/* * Copyright (c) 2020, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #include #include namespace Kernel::Memory { RefPtr PrivateInodeVMObject::try_create_with_inode(Inode& inode) { return adopt_ref_if_nonnull(new (nothrow) PrivateInodeVMObject(inode, inode.size())); } KResultOr> 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() { } }