Skip to content

Debugging macro and kmalloc_obj* cleanups

David Sterba linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6btrfs: move condition to WARN_ON in btrfs_set_delalloc_extent()fs/btrfs/inode.c+1 -20 replies
2/6btrfs: replace open coded DEBUG_WARN in extent_writepage()fs/btrfs/extent_io.c+1 -10 replies
3/6btrfs: handle unexpected free-space-tree key typesfs/btrfs/free-space-tree.c+15 -30 replies
4/6btrfs: lift assertions to beginning of insert_delayed_ref()fs/btrfs/delayed-ref.c+4 -10 replies
5/6btrfs: do more kmalloc_obj()/kmalloc_objs() conversionsfs/btrfs/relocation.c+5 -50 replies
6/6btrfs: convert kmalloc_array to kmalloc_objs in btrfs_calc_avail_data_space()fs/btrfs/super.c+1 -20 replies

Reviews trailers per patch

None of the 6 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJohannes Thumshirn
SeriesR-b
1/6
2/6
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] Debugging macro and kmalloc_obj* cleanups

Replace some macros with existing or new API. Replacing ASSERT(0) in free space tree updates error handling but it's for "impossible" conditions.

David Sterba (6):
btrfs: move condition to WARN_ON in btrfs_set_delalloc_extent()
btrfs: replace open coded DEBUG_WARN in extent_writepage()
btrfs: handle unexpected free-space-tree key types
btrfs: lift assertions to beginning of insert_delayed_ref()
btrfs: do more kmalloc_obj()/kmalloc_objs() conversions
btrfs: convert kmalloc_array to kmalloc_objs in
btrfs_calc_avail_data_space()

 fs/btrfs/delayed-ref.c     |  5 ++++-
 fs/btrfs/extent_io.c       |  2 +-
 fs/btrfs/free-space-tree.c | 18 +++++++++++++++---
 fs/btrfs/inode.c           |  3 +--
 fs/btrfs/relocation.c      | 10 +++++-----
 fs/btrfs/super.c           |  3 +--
 6 files changed, 27 insertions(+), 14 deletions(-)
Signature · 1 line
2.53.0