diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2022-12-20 16:34:13 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-12-22 15:48:53 +0100 |
commit | bed5961fc21ea499ede556d6269df29b8a7a9e15 (patch) | |
tree | c84c9050a0dbbd948f54cb0829d0b98d42cf3af2 /Kernel/Memory/PrivateInodeVMObject.cpp | |
parent | c4e8509aacee087b05d9797ab013ac5b9020ea72 (diff) | |
download | serenity-bed5961fc21ea499ede556d6269df29b8a7a9e15.zip |
AK: Rename Bitmap::try_create() to ::create()
This is step 1 to removing `must_create()`.
Diffstat (limited to 'Kernel/Memory/PrivateInodeVMObject.cpp')
-rw-r--r-- | Kernel/Memory/PrivateInodeVMObject.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Memory/PrivateInodeVMObject.cpp b/Kernel/Memory/PrivateInodeVMObject.cpp index 6f769c6df5..8463656e06 100644 --- a/Kernel/Memory/PrivateInodeVMObject.cpp +++ b/Kernel/Memory/PrivateInodeVMObject.cpp @@ -23,14 +23,14 @@ ErrorOr<NonnullLockRefPtr<PrivateInodeVMObject>> PrivateInodeVMObject::try_creat auto size = max(inode.size(), (offset + range_size)); VERIFY(size > 0); auto new_physical_pages = TRY(VMObject::try_create_physical_pages(size)); - auto dirty_pages = TRY(Bitmap::try_create(new_physical_pages.size(), false)); + auto dirty_pages = TRY(Bitmap::create(new_physical_pages.size(), false)); return adopt_nonnull_lock_ref_or_enomem(new (nothrow) PrivateInodeVMObject(inode, move(new_physical_pages), move(dirty_pages))); } ErrorOr<NonnullLockRefPtr<VMObject>> PrivateInodeVMObject::try_clone() { auto new_physical_pages = TRY(this->try_clone_physical_pages()); - auto dirty_pages = TRY(Bitmap::try_create(new_physical_pages.size(), false)); + auto dirty_pages = TRY(Bitmap::create(new_physical_pages.size(), false)); return adopt_nonnull_lock_ref_or_enomem<VMObject>(new (nothrow) PrivateInodeVMObject(*this, move(new_physical_pages), move(dirty_pages))); } |