mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 04:38:11 +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:
parent
6337d742bb
commit
6f69d5204f
18 changed files with 28 additions and 20 deletions
|
@ -41,14 +41,14 @@ void Inode::sync_all()
|
|||
|
||||
for (auto& inode : inodes) {
|
||||
VERIFY(inode.is_metadata_dirty());
|
||||
inode.flush_metadata();
|
||||
(void)inode.flush_metadata();
|
||||
}
|
||||
}
|
||||
|
||||
void Inode::sync()
|
||||
{
|
||||
if (is_metadata_dirty())
|
||||
flush_metadata();
|
||||
(void)flush_metadata();
|
||||
fs().flush_writes();
|
||||
}
|
||||
|
||||
|
@ -103,7 +103,7 @@ void Inode::will_be_destroyed()
|
|||
{
|
||||
MutexLocker locker(m_inode_lock);
|
||||
if (m_metadata_dirty)
|
||||
flush_metadata();
|
||||
(void)flush_metadata();
|
||||
}
|
||||
|
||||
KResult Inode::set_atime(time_t)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue