Skip to content

replace BUG() and BUG_ON() with error handling

Adarsh Das linux-btrfs lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 3 repliesIn review
  2. v14 patches 5 repliesSuperseded

Changes in v2 from the cover letter

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

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs: replace BUG() with error handling in compression.cfs/btrfs/compression.c+25 -492 replies
2/2btrfs: replace BUG() and BUG_ON() with error handling in extent-tree.cfs/btrfs/delayed-ref.c fs/btrfs/extent-tree.c+36 -341 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

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

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