mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-13 06:32:54 +00:00
Kernel: Move all code into the Kernel namespace
This commit is contained in:
parent
d42f0f4661
commit
a356e48150
Notes:
sideshowbarker
2024-07-19 09:17:31 +09:00
Author: https://github.com/awesomekling
Commit: a356e48150
201 changed files with 907 additions and 111 deletions
Kernel/FileSystem
|
@ -36,6 +36,8 @@
|
|||
|
||||
//#define EXT2_DEBUG
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
static const size_t max_link_count = 65535;
|
||||
static const size_t max_block_size = 4096;
|
||||
static const ssize_t max_inline_symlink_length = 60;
|
||||
|
@ -573,7 +575,7 @@ InodeMetadata Ext2FSInode::metadata() const
|
|||
metadata.block_size = fs().block_size();
|
||||
metadata.block_count = m_raw_inode.i_blocks;
|
||||
|
||||
if (::is_character_device(m_raw_inode.i_mode) || ::is_block_device(m_raw_inode.i_mode)) {
|
||||
if (Kernel::is_character_device(m_raw_inode.i_mode) || Kernel::is_block_device(m_raw_inode.i_mode)) {
|
||||
unsigned dev = m_raw_inode.i_block[0];
|
||||
if (!dev)
|
||||
dev = m_raw_inode.i_block[1];
|
||||
|
@ -1646,3 +1648,5 @@ KResult Ext2FS::prepare_to_unmount() const
|
|||
m_inode_cache.clear();
|
||||
return KSuccess;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue