[PATCH v2 0/2] replace BUG() and BUG_ON() with error handling

From: Adarsh Das

Date: Sat Feb 28 2026 - 04:07:10 EST


v2:
- replace btrfs_err() + -EUCLEAN with ASSERT() for runtime logic bugs as suggested by Qu Wenruo
- fold coding style fixes into main patches

Adarsh Das (2):
btrfs: replace BUG() with error handling in compression.c
btrfs: replace BUG() and BUG_ON() with error handling in extent-tree.c

fs/btrfs/compression.c | 74 ++++++++++++++----------------------------
fs/btrfs/delayed-ref.c | 8 +++--
fs/btrfs/extent-tree.c | 62 +++++++++++++++++------------------
3 files changed, 61 insertions(+), 83 deletions(-)

--
2.53.0