mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-02 01:08:48 +00:00
Kernel: Implement InodeFile::stat() and simplify FileDescription::stat()
This commit is contained in:
parent
675b0aee24
commit
cac94b1c16
Notes:
sideshowbarker
2024-07-18 12:39:22 +09:00
Author: https://github.com/MaxWipfli
Commit: cac94b1c16
Pull-request: https://github.com/SerenityOS/serenity/pull/7867
2 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue