[PATCH 0/4] btrfs: replace BUG() and BUG_ON() with error handling
From: Adarsh Das
Date: Fri Feb 27 2026 - 13:32:18 EST
Replace BUG() and BUG_ON() calls in compression.c and extent-tree.c
with proper error handling so the kernel does not crash on unexpected
conditions. Also fix checkpatch warnings and errors found in both files.
Adarsh Das (4):
btrfs: replace BUG() with error handling in compression.c
btrfs: clean coding style errors and warnings in compression.c
btrfs: replace BUG() and BUG_ON() with error handling in extent-tree.c
btrfs: clean coding style errors in extent-tree.c
fs/btrfs/compression.c | 66 ++++++++++++-------------------
fs/btrfs/extent-tree.c | 89 +++++++++++++++++++++++++++++++-----------
2 files changed, 91 insertions(+), 64 deletions(-)
--
2.53.0