[PATCH 0/2] btrfs: clean up two FIXMEs related to btrfs_search_slot output handling

From: Adarsh Das

Date: Tue Feb 03 2026 - 12:26:36 EST


Both patches fix cases where a search with offset (u64)-1 gets an
unexpected exact match. The first silently returned success, and the
second crashed the kernel. Both now both log an error and return -EUCLEAN.

Adarsh Das (2):
btrfs: handle unexpected exact match in btrfs_set_inode_index_count()
btrfs: replace BUG() with error handling in __btrfs_balance()

fs/btrfs/inode.c | 15 ++++++++++++---
fs/btrfs/volumes.c | 10 ++++++++--
2 files changed, 20 insertions(+), 5 deletions(-)

--
2.53.0