Skip to content

btrfs: error handling improvement to btrfs_backref_error_cleanup()

Qu Wenruo linux-btrfs 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs: make btrfs_backref_finish_upper_links() fail before touching the cachefs/btrfs/backref.c+21 -50 replies
2/2btrfs: fix leaked backref nodes in btrfs_backref_error_cleanup()fs/btrfs/backref.c+22 -440 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/2] btrfs: error handling improvement to btrfs_backref_error_cleanup()

The first one is a case where erroring out halfway can be problematic, change it to validate before anything else.

The second one is reported by Sashiko.

Qu Wenruo (2):
btrfs: make btrfs_backref_finish_upper_links() fail before touching
the cache
btrfs: fix leaked backref nodes in btrfs_backref_error_cleanup()

 fs/btrfs/backref.c | 92 ++++++++++++++++++++++------------------------
 1 file changed, 43 insertions(+), 49 deletions(-)
Signature · 1 line
2.56.1