mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-02 04:27:12 +02: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:
Notes:
sideshowbarker
2024-07-18 02:05:05 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/6f69d5204fe
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user