From cac94b1c16b8c8063dfad6bf07d3e333c774d2cc Mon Sep 17 00:00:00 2001 From: Max Wipfli Date: Mon, 7 Jun 2021 09:47:21 +0200 Subject: Kernel: Implement InodeFile::stat() and simplify FileDescription::stat() --- Kernel/FileSystem/FileDescription.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'Kernel/FileSystem/FileDescription.cpp') diff --git a/Kernel/FileSystem/FileDescription.cpp b/Kernel/FileSystem/FileDescription.cpp index 30a3e5d81f..20ba9a03d1 100644 --- a/Kernel/FileSystem/FileDescription.cpp +++ b/Kernel/FileSystem/FileDescription.cpp @@ -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); } -- cgit v1.2.3