Skip to content

More error handling and BUG_ON cleanups

David Sterba linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14btrfs: push errors up from add_async_extent()fs/btrfs/inode.c+8 -50 replies
2/14btrfs: update comment and drop assertion in extent item lookup in find_parent_nodes()fs/btrfs/backref.c+4 -20 replies
3/14btrfs: handle invalid extent item reference found in extent_from_logical()fs/btrfs/backref.c+11 -00 replies
4/14btrfs: handle invalid extent item reference found in find_first_extent_item()fs/btrfs/scrub.c+8 -10 replies
5/14btrfs: handle invalid root reference found in may_destroy_subvol()fs/btrfs/inode.c+8 -10 replies
6/14btrfs: send: handle unexpected data in header buffer in begin_cmd()fs/btrfs/send.c+6 -10 replies
7/14btrfs: send: handle unexpected inode in header process_recorded_refs()fs/btrfs/send.c+7 -10 replies
8/14btrfs: send: handle path ref underflow in header iterate_inode_ref()fs/btrfs/send.c+9 -10 replies
9/14btrfs: change BUG_ON to assertion in tree_move_down()fs/btrfs/send.c+1 -10 replies
10/14btrfs: change BUG_ONs to assertions in btrfs_qgroup_trace_subtree()fs/btrfs/qgroup.c+2 -20 replies
11/14btrfs: delete pointless BUG_ON check on quota root in btrfs_qgroup_account_extent()fs/btrfs/qgroup.c+0 -20 replies
12/14btrfs: delete pointless BUG_ONs on extent item sizefs/btrfs/backref.c+0 -30 replies
13/14btrfs: handle unexpected parent block offset in btrfs_alloc_tree_block()fs/btrfs/extent-tree.c+10 -20 replies
14/14btrfs: delete BUG_ON in btrfs_init_locked_inode()fs/btrfs/inode.c+0 -10 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/14] More error handling and BUG_ON cleanups

Continuation of https://lore.kernel.org/linux-btrfs/[email protected]/
BUG_ON converted to error handling, removed or moved.

David Sterba (14):
btrfs: push errors up from add_async_extent()
btrfs: update comment and drop assertion in extent item lookup in
find_parent_nodes()
btrfs: handle invalid extent item reference found in
extent_from_logical()
btrfs: handle invalid extent item reference found in
find_first_extent_item()
btrfs: handle invalid root reference found in may_destroy_subvol()
btrfs: send: handle unexpected data in header buffer in begin_cmd()
btrfs: send: handle unexpected inode in header process_recorded_refs()
btrfs: send: handle path ref underflow in header iterate_inode_ref()
btrfs: change BUG_ON to assertion in tree_move_down()
btrfs: change BUG_ONs to assertions in btrfs_qgroup_trace_subtree()
btrfs: delete pointless BUG_ON check on quota root in
btrfs_qgroup_account_extent()
btrfs: delete pointless BUG_ONs on extent item size
btrfs: handle unexpected parent block offset in
btrfs_alloc_tree_block()
btrfs: delete BUG_ON in btrfs_init_locked_inode()

 fs/btrfs/backref.c     | 20 +++++++++++++++-----
 fs/btrfs/extent-tree.c | 12 ++++++++++--
 fs/btrfs/inode.c       | 23 ++++++++++++++++-------
 fs/btrfs/qgroup.c      |  6 ++----
 fs/btrfs/scrub.c       |  9 ++++++++-
 fs/btrfs/send.c        | 27 +++++++++++++++++++++++----
 6 files changed, 74 insertions(+), 23 deletions(-)
Signature · 1 line
2.42.1