From: Adarsh Das <adarshdas950@gmail.com>
To: clm@fb.com, dsterba@suse.com
Cc: terrelln@fb.com, linux-btrfs@vger.kernel.org,
linux-kernel@vger.kernel.org, Adarsh Das <adarshdas950@gmail.com>
Subject: [PATCH v2 0/2] replace BUG() and BUG_ON() with error handling
Date: Sat, 28 Feb 2026 14:36:19 +0530 [thread overview]
Message-ID: <20260228090621.100841-1-adarshdas950@gmail.com> (raw)
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
next reply other threads:[~2026-02-28 9:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-28 9:06 Adarsh Das [this message]
2026-02-28 9:06 ` [PATCH v2 1/2] btrfs: replace BUG() with error handling in compression.c Adarsh Das
2026-02-28 20:36 ` Qu Wenruo
2026-03-01 11:34 ` Filipe Manana
2026-02-28 9:06 ` [PATCH v2 2/2] btrfs: replace BUG() and BUG_ON() with error handling in extent-tree.c Adarsh Das
2026-02-28 20:37 ` Qu Wenruo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260228090621.100841-1-adarshdas950@gmail.com \
--to=adarshdas950@gmail.com \
--cc=clm@fb.com \
--cc=dsterba@suse.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=terrelln@fb.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox