diff options
author | Andreas Kling <kling@serenityos.org> | 2021-06-12 13:24:45 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-12 13:24:45 +0200 |
commit | dc65f54c065364225f0113a9339af72735547779 (patch) | |
tree | 60a8b9d37c6236748bfa310a564150d688595183 /Kernel | |
parent | 7e1bffdeb85c832c7cea1a71e2c9e9ebe7ff96ae (diff) | |
download | serenity-dc65f54c065364225f0113a9339af72735547779.zip |
AK: Rename Vector::append(Vector) => Vector::extend(Vector)
Let's make it a bit more clear when we're appending the elements from
one vector to the end of another vector.
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/FileSystem/Ext2FileSystem.cpp | 2 | ||||
-rw-r--r-- | Kernel/VM/Space.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/FileSystem/Ext2FileSystem.cpp b/Kernel/FileSystem/Ext2FileSystem.cpp index 2557fff3ff..6ef1eebe37 100644 --- a/Kernel/FileSystem/Ext2FileSystem.cpp +++ b/Kernel/FileSystem/Ext2FileSystem.cpp @@ -920,7 +920,7 @@ KResult Ext2FSInode::resize(u64 new_size) auto blocks_or_error = fs().allocate_blocks(fs().group_index_from_inode(index()), blocks_needed_after - blocks_needed_before); if (blocks_or_error.is_error()) return blocks_or_error.error(); - if (!m_block_list.try_append(blocks_or_error.release_value())) + if (!m_block_list.try_extend(blocks_or_error.release_value())) return ENOMEM; } else if (blocks_needed_after < blocks_needed_before) { if constexpr (EXT2_VERY_DEBUG) { diff --git a/Kernel/VM/Space.cpp b/Kernel/VM/Space.cpp index 543448c3a9..bb8bc68b29 100644 --- a/Kernel/VM/Space.cpp +++ b/Kernel/VM/Space.cpp @@ -119,7 +119,7 @@ KResult Space::unmap_mmap_range(VirtualAddress addr, size_t size) region->unmap(Region::ShouldDeallocateVirtualMemoryRange::No); // Otherwise just split the regions and collect them for future mapping - if (new_regions.try_append(split_region_around_range(*region, range_to_unmap))) + if (new_regions.try_extend(split_region_around_range(*region, range_to_unmap))) return ENOMEM; } // Instead we give back the unwanted VM manually at the end. |