Skip to content

Fix transaction abort when rmdir'ing a subvol

Josef Bacik linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3btrfs: rework arguments for btrfs_unlink_subvolfs/btrfs/inode.c+20 -240 replies
2/3btrfs: fix invalid removal of root reffs/btrfs/inode.c+19 -80 replies
3/3btrfs: do not delete mismatched root ref'sfs/btrfs/root-tree.c+6 -40 replies

Reviews trailers per patch

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

PatchDavid Sterba
SeriesR-b
1/3
2/3
3/3

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/3] Fix transaction abort when rmdir'ing a subvol

btrfs/004 with my new fsstress was sometimes failing with a transaction abort while trying to remove a root ref. This turned out to be because of how we stub out subvol links in snapshot'ed subvolumes. The specific steps are detailed in "btrfs: fix invalid removal of root ref", but they are relatively straightforward. A xfstest is forthcoming, I want to get an overnight run of fsstress with these patches in place to make sure there are no other rename+removal shenanigans left. With these patches we pass my basic test and no longer abort the transaction. Thanks,

Josef