btrfs: some fixes and updates around handling errors for tree mod log operations
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest13 patches 8 repliesIn review
- v113 patches 18 repliesSuperseded
Patches in v2 No applies recorded yet
Reviews trailers per patch
10 of 13 patches have a Reviewed-by or Acked-by.
| Patch | Qu Wenruo | Anand Jain |
|---|---|---|
| 1/13 | R-b | |
| 2/13 | R-b | |
| 3/13 | ||
| 4/13 | R-b | |
| 5/13 | R-b | |
| 6/13 | R-b | R-b |
| 7/13 | R-b | |
| 8/13 | R-b R-b | |
| 9/13 | R-b | |
| 10/13 | R-b | |
| 11/13 | R-b | |
| 12/13 | ||
| 13/13 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 00/13] btrfs: some fixes and updates around handling errors for tree mod log operations
From: Filipe Manana <[email protected]>
This mostly helps avoid some unnecessary enomem failures when logging tree mod log operations and replace some BUG_ON()'s when dealing with such failures. There's also 2 bug fixes (the first two patches) and some cleanups. More details on the changelogs.
V2: Add explicit error messages in patches 8/13 and 9/13.
Add missing unlock and ref count drop of 'right' extent buffer to patch 12/13. Add missing extent buffer ref count drops for right and mid extent buffers in error paths of balance_level() to patch 13/13.
Fix subject of patch 2/13 (removed duplicated word).
Added Reviewed-by tags where appropriate.
Filipe Manana (13):
btrfs: add missing error handling when logging operation while COWing extent buffer
btrfs: fix extent buffer leak after tree mod log failure at split_node()
btrfs: avoid tree mod log ENOMEM failures when we don't need to log
btrfs: do not BUG_ON() on tree mod log failure at __btrfs_cow_block()
btrfs: do not BUG_ON() on tree mod log failure at balance_level()
btrfs: rename enospc label to out at balance_level()
btrfs: avoid unnecessarily setting the fs to RO and error state at balance_level()
btrfs: abort transaction at balance_level() when left child is missing
btrfs: abort transaction at update_ref_for_cow() when ref count is zero
btrfs: do not BUG_ON() on tree mod log failures at push_nodes_for_insert()
btrfs: do not BUG_ON() on tree mod log failure at insert_new_root()
btrfs: do not BUG_ON() on tree mod log failures at insert_ptr()
btrfs: do not BUG_ON() on tree mod log failures at btrfs_del_ptr()
fs/btrfs/ctree.c | 221 +++++++++++++++++++++++++++++----------- fs/btrfs/ctree.h | 4 +- fs/btrfs/tree-mod-log.c | 148 ++++++++++++++++++++------- 3 files changed, 279 insertions(+), 94 deletions(-)
Signature · 1 line
2.34.1