Skip to content

btrfs: clean up two FIXMEs related to btrfs_search_slot output handling

Adarsh Das linux-btrfs lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs: handle unexpected exact match in btrfs_set_inode_index_count()fs/btrfs/inode.c+12 -30 replies
2/2btrfs: replace BUG() with error handling in __btrfs_balance()fs/btrfs/volumes.c+8 -20 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchQu Wenruo
SeriesR-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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

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(-)
Signature · 1 line
2.53.0