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

Kernel: Make Inode::flush_metadata() return a KResult

Even if this goes nowhere yet, we have to start building an error
propagation path somewhere.
This commit is contained in:
Andreas Kling 2021-10-21 17:01:52 +02:00
parent 6337d742bb
commit 6f69d5204f
18 changed files with 28 additions and 20 deletions

View file

@ -773,7 +773,7 @@ InodeMetadata Ext2FSInode::metadata() const
return metadata;
}
void Ext2FSInode::flush_metadata()
KResult Ext2FSInode::flush_metadata()
{
MutexLocker locker(m_inode_lock);
dbgln_if(EXT2_DEBUG, "Ext2FSInode[{}]::flush_metadata(): Flushing inode", identifier());
@ -786,6 +786,7 @@ void Ext2FSInode::flush_metadata()
}
}
set_metadata_dirty(false);
return KSuccess;
}
KResultOr<NonnullRefPtr<Inode>> Ext2FS::get_inode(InodeIdentifier inode) const