mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:48:11 +00:00
Kernel: Make Ext2FS::free_inode() return KResult, and use TRY() more
While there's no clear propagation path for errors that happen in an inode destructor, using TRY() still makes the code a lot nicer.
This commit is contained in:
parent
98b865fe10
commit
fe98cb2c4b
2 changed files with 12 additions and 13 deletions
|
@ -145,7 +145,7 @@ private:
|
|||
KResult set_block_allocation_state(BlockIndex, bool);
|
||||
|
||||
void uncache_inode(InodeIndex);
|
||||
void free_inode(Ext2FSInode&);
|
||||
KResult free_inode(Ext2FSInode&);
|
||||
|
||||
struct BlockListShape {
|
||||
unsigned direct_blocks { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue