diff options
author | Andreas Kling <kling@serenityos.org> | 2020-01-26 10:16:05 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-01-26 10:18:18 +0100 |
commit | 1d506a935cdc04172965341eda048287762168e5 (patch) | |
tree | 62cc12142b0a57b7d10a1c7f45d526f08a469185 | |
parent | b011857e4f8e362b6734cfb95c0d8d335f84b04b (diff) | |
download | serenity-1d506a935cdc04172965341eda048287762168e5.zip |
Ext2FS: Give names to some KBuffers
The more we give names to KBuffers, the easier it gets to understand
what's what in a kernel region dump. :^)
-rw-r--r-- | Kernel/FileSystem/Ext2FileSystem.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/FileSystem/Ext2FileSystem.cpp b/Kernel/FileSystem/Ext2FileSystem.cpp index 4257b4b1fb..d3d3bf2106 100644 --- a/Kernel/FileSystem/Ext2FileSystem.cpp +++ b/Kernel/FileSystem/Ext2FileSystem.cpp @@ -124,7 +124,7 @@ bool Ext2FS::initialize() unsigned blocks_to_read = ceil_div(m_block_group_count * (unsigned)sizeof(ext2_group_desc), block_size()); BlockIndex first_block_of_bgdt = block_size() == 1024 ? 2 : 1; - m_cached_group_descriptor_table = KBuffer::create_with_size(block_size() * blocks_to_read); + m_cached_group_descriptor_table = KBuffer::create_with_size(block_size() * blocks_to_read, Region::Access::Read | Region::Access::Write, "Ext2FS: Block group descriptors"); read_blocks(first_block_of_bgdt, blocks_to_read, m_cached_group_descriptor_table.value().data()); #ifdef EXT2_DEBUG @@ -1285,7 +1285,7 @@ Ext2FS::CachedBitmap& Ext2FS::get_bitmap_block(BlockIndex bitmap_block_index) return *cached_bitmap; } - auto block = KBuffer::create_with_size(block_size()); + auto block = KBuffer::create_with_size(block_size(), Region::Access::Read | Region::Access::Write, "Ext2FS: Cached bitmap block"); bool success = read_block(bitmap_block_index, block.data()); ASSERT(success); m_cached_bitmaps.append(make<CachedBitmap>(bitmap_block_index, move(block))); |