mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 20:17:13 +02:00
Kernel: Propagate a few KResults properly in FileSystem subsystems
Propagating un-obsevered KResults up the stack.
This commit is contained in:
committed by
Andreas Kling
parent
c4c6d9367d
commit
d67069d922
Notes:
sideshowbarker
2024-07-19 04:16:58 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/d67069d9224 Pull-request: https://github.com/SerenityOS/serenity/pull/3001 Reviewed-by: https://github.com/awesomekling
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user