1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 10:04:59 +00:00

Kernel: Implement InodeFile::stat() and simplify FileDescription::stat()

This commit is contained in:
Max Wipfli 2021-06-07 09:47:21 +02:00 committed by Andreas Kling
parent 675b0aee24
commit cac94b1c16
2 changed files with 1 additions and 3 deletions

View file

@ -110,9 +110,6 @@ Thread::FileBlocker::BlockFlags FileDescription::should_unblock(Thread::FileBloc
KResult FileDescription::stat(::stat& buffer)
{
Locker locker(m_lock);
// FIXME: This is a little awkward, why can't we always forward to File::stat()?
if (m_inode)
return metadata().stat(buffer);
return m_file->stat(buffer);
}