Skip to contentSkip to conversation

Return of btrfs_del_item

DISCUSSION Kang Chen 2 participants 2 messages Feb 17, 2023 – Feb 18, 2023 Btrfs file system

lore
Share & tools
lore
#1 lore raw
Quoted 5 lines · Kang Chen

I found that the return value of btrfs_del_item is handled elsewhere, is it needed here?
Maybe we should save the return value to ret and abort the transaction later.

https://elixir.bootlin.com/linux/v6.0.1/source/fs/btrfs/delayed-inode.c#L1075

It looks like a missing error handling.

Even if the slot is already read out, we may still need to re-balance the tree, thus it can cause error in that btrfs_del_item() call.

Feel free to add error handling to the call site.

Thanks,
Qu