Kernel: Make Ext2FS::write_ext2_inode() return KResult

This allows us to use TRY() in more places.
This commit is contained in:
Andreas Kling 2021-10-21 17:03:50 +02:00
commit 98b865fe10
Notes: sideshowbarker 2024-07-18 02:05:02 +09:00
2 changed files with 8 additions and 12 deletions

View file

@ -122,7 +122,7 @@ private:
u64 blocks_per_group() const;
u64 inode_size() const;
bool write_ext2_inode(InodeIndex, const ext2_inode&);
KResult write_ext2_inode(InodeIndex, ext2_inode const&);
bool find_block_containing_inode(InodeIndex, BlockIndex& block_index, unsigned& offset) const;
bool flush_super_block();