mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 19:44:58 +00:00
Kernel: Propagate a few KResults properly in FileSystem subsystems
Propagating un-obsevered KResults up the stack.
This commit is contained in:
parent
c4c6d9367d
commit
d67069d922
5 changed files with 20 additions and 8 deletions
|
@ -1023,7 +1023,9 @@ KResult Ext2FSInode::remove_child(const StringView& name)
|
|||
m_lookup_cache.remove(name);
|
||||
|
||||
auto child_inode = fs().get_inode(child_id);
|
||||
child_inode->decrement_link_count();
|
||||
result = child_inode->decrement_link_count();
|
||||
if (result.is_error())
|
||||
return result;
|
||||
|
||||
did_remove_child(name);
|
||||
return KSuccess;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue