public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] btrfs: clean up two FIXMEs related to btrfs_search_slot output handling
@ 2026-02-03 17:23 Adarsh Das
  2026-02-03 17:23 ` [PATCH 1/2] btrfs: handle unexpected exact match in btrfs_set_inode_index_count() Adarsh Das
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Adarsh Das @ 2026-02-03 17:23 UTC (permalink / raw)
  To: Chris Mason, David Sterba; +Cc: linux-btrfs, linux-kernel, Adarsh Das

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-02-04 14:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-03 17:23 [PATCH 0/2] btrfs: clean up two FIXMEs related to btrfs_search_slot output handling Adarsh Das
2026-02-03 17:23 ` [PATCH 1/2] btrfs: handle unexpected exact match in btrfs_set_inode_index_count() Adarsh Das
2026-02-03 17:23 ` [PATCH 2/2] btrfs: replace BUG() with error handling in __btrfs_balance() Adarsh Das
2026-02-03 21:06 ` [PATCH 0/2] btrfs: clean up two FIXMEs related to btrfs_search_slot output handling Qu Wenruo
2026-02-04 14:03 ` David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox