mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 22:28:12 +00:00

SPDX License Identifiers are a more compact / standardized way of representing file license information. See: https://spdx.dev/resources/use/#identifiers This was done with the `ambr` search and replace tool. ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
36 lines
750 B
C++
36 lines
750 B
C++
/*
|
|
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <Kernel/FileSystem/Inode.h>
|
|
#include <Kernel/VM/PrivateInodeVMObject.h>
|
|
|
|
namespace Kernel {
|
|
|
|
NonnullRefPtr<PrivateInodeVMObject> PrivateInodeVMObject::create_with_inode(Inode& inode)
|
|
{
|
|
return adopt(*new PrivateInodeVMObject(inode, inode.size()));
|
|
}
|
|
|
|
RefPtr<VMObject> PrivateInodeVMObject::clone()
|
|
{
|
|
return adopt(*new PrivateInodeVMObject(*this));
|
|
}
|
|
|
|
PrivateInodeVMObject::PrivateInodeVMObject(Inode& inode, size_t size)
|
|
: InodeVMObject(inode, size)
|
|
{
|
|
}
|
|
|
|
PrivateInodeVMObject::PrivateInodeVMObject(const PrivateInodeVMObject& other)
|
|
: InodeVMObject(other)
|
|
{
|
|
}
|
|
|
|
PrivateInodeVMObject::~PrivateInodeVMObject()
|
|
{
|
|
}
|
|
|
|
}
|