mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:38:12 +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
|
@ -216,7 +216,7 @@ void TmpFSInode::notify_watchers()
|
|||
set_metadata_dirty(false);
|
||||
}
|
||||
|
||||
void TmpFSInode::flush_metadata()
|
||||
KResult TmpFSInode::flush_metadata()
|
||||
{
|
||||
// We don't really have any metadata that could become dirty.
|
||||
// The only reason we even call set_metadata_dirty() is
|
||||
|
@ -224,6 +224,7 @@ void TmpFSInode::flush_metadata()
|
|||
// switched to a different mechanism, we can stop ever marking
|
||||
// our metadata as dirty at all.
|
||||
set_metadata_dirty(false);
|
||||
return KSuccess;
|
||||
}
|
||||
|
||||
KResult TmpFSInode::chmod(mode_t mode)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue