1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-22 14:55:07 +00:00

Remove FS::read_entire_inode() in favor of Inode::read_entire().

This commit is contained in:
Andreas Kling 2018-12-21 17:45:42 +01:00
parent 04ee693925
commit 7bc41532be
9 changed files with 9 additions and 66 deletions

View file

@ -195,9 +195,8 @@ ByteBuffer FileDescriptor::read_entire_file()
return buffer;
}
if (m_vnode->core_inode())
return m_vnode->core_inode()->read_entire(this);
return m_vnode->fs()->read_entire_inode(m_vnode->inode, this);
ASSERT(inode());
return inode()->read_entire(this);
}
bool FileDescriptor::is_directory() const