Skip to content

My current btrfs patch queue

Josef Bacik linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest21 patches 29 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/21Btrfs: rework outstanding_extentsfs/btrfs/btrfs_inode.h fs/btrfs/ctree.h fs/btrfs/extent-tree.c +7 more+186 -1566 replies
2/21btrfs: add tracepoints for outstanding extents modsfs/btrfs/btrfs_inode.h include/trace/events/btrfs.h+23 -00 replies
3/21btrfs: make the delalloc block rsv per inodefs/btrfs/btrfs_inode.h fs/btrfs/ctree.h fs/btrfs/delayed-inode.c +3 more+141 -2932 replies
4/21btrfs: add ref-verify mount optionfs/btrfs/ctree.h fs/btrfs/super.c+16 -02 replies
5/21btrfs: pass root to various extent ref mod functionsfs/btrfs/ctree.c fs/btrfs/ctree.h fs/btrfs/extent-tree.c +5 more+37 -331 reply
6/21Btrfs: add a extent ref verify toolfs/btrfs/Kconfig fs/btrfs/Makefile fs/btrfs/ctree.h +4 more+1116 -01 reply
7/21Btrfs: only check delayed ref usage in should_end_transactionfs/btrfs/transaction.c+1 -21 reply
8/21btrfs: add a helper to return a head reffs/btrfs/extent-tree.c+15 -151 reply
9/21btrfs: move extent_op cleanup to a helperfs/btrfs/extent-tree.c+40 -373 replies
10/21btrfs: breakout empty head cleanup to a helperfs/btrfs/extent-tree.c+45 -353 replies
11/21btrfs: move ref_mod modification into the if (ref) logicfs/btrfs/extent-tree.c+2 -41 reply
12/21btrfs: move all ref head cleanup to the helper functionfs/btrfs/extent-tree.c+64 -801 reply
13/21btrfs: remove delayed_ref_node from ref_headfs/btrfs/backref.c fs/btrfs/delayed-ref.c fs/btrfs/delayed-ref.h +3 more+120 -1762 replies
14/21btrfs: remove type argument from comp_tree_refsfs/btrfs/delayed-ref.c+4 -61 reply
15/21btrfs: switch args for comp_*_refsfs/btrfs/delayed-ref.c+4 -41 reply
16/21btrfs: add a comp_refs() helperfs/btrfs/delayed-ref.c+30 -240 replies
17/21btrfs: track refs in a rb_tree instead of a listfs/btrfs/backref.c fs/btrfs/delayed-ref.c fs/btrfs/delayed-ref.h +2 more+81 -670 replies
18/21btrfs: fix send ioctl on 32bit with 64bit kernelfs/btrfs/ioctl.c fs/btrfs/send.c fs/btrfs/send.h+55 -120 replies
19/21btrfs: don't call btrfs_start_delalloc_roots in flushoncommitfs/btrfs/transaction.c+1 -11 reply
20/21btrfs: move btrfs_truncate_block out of trans handlefs/btrfs/inode.c+44 -750 replies
21/21btrfs: add assertions for releasing trans handle reservationsfs/btrfs/extent-tree.c+4 -11 reply

Reviews trailers per patch

12 of 21 patches have a Reviewed-by or Acked-by.

PatchDavid Sterba
1/21
2/21
3/21
4/21R-b
5/21R-b
6/21R-b
7/21R-b
8/21R-b
9/21R-b
10/21R-b
11/21R-b
12/21R-b
13/21R-b
14/21R-b
15/21
16/21
17/21
18/21
19/21
20/21
21/21R-b

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 00/21] My current btrfs patch queue

This is my current set of outstanding patches. A lot of these had reviews and I've incorporated the feedback. They have been pretty thorougly tested and are pretty solid.

[PATCH 01/21] Btrfs: rework outstanding_extents
[PATCH 02/21] btrfs: add tracepoints for outstanding extents mods [PATCH 03/21] btrfs: make the delalloc block rsv per inode

These are simplification patches. The way we handled metadata reservation for multiple extents for an inode was really complicated and fragile, these patches go a long way towards simplifying that code. We only have one outstanding_extents counter, and the rules for changing that counter are more straightforward and logical. There are some uglier cases still, but this is as clean as I could think to do it at the moment.

[PATCH 04/21] btrfs: add ref-verify mount option
[PATCH 05/21] btrfs: pass root to various extent ref mod functions [PATCH 06/21] Btrfs: add a extent ref verify tool

This is the ref verification set. I've broken the patches up a little more since I originally posted them, but it's a big feature so it's just going to be a bit large unfortunately. I also fixed all of the printk's so they are btrfs_err() now. I folded in all of the various fixes that came from Marc Merlin's usage of the patches.

[PATCH 07/21] Btrfs: only check delayed ref usage in [PATCH 08/21] btrfs: add a helper to return a head ref [PATCH 09/21] btrfs: move extent_op cleanup to a helper [PATCH 10/21] btrfs: breakout empty head cleanup to a helper [PATCH 11/21] btrfs: move ref_mod modification into the if (ref) [PATCH 12/21] btrfs: move all ref head cleanup to the helper function [PATCH 13/21] btrfs: remove delayed_ref_node from ref_head

Delayed ref's cleanup. run_delayed_refs was kind of complicated and we did two things in two different places. Either we ran the actual delayed ref, or we cleaned up the delayed_ref_head, and we did this in different places depending on how things went. These are mostly moving code around, adding helpers to make it clear what's happening, and to make __btrfs_run_delayed_refs smaller and clearer. I also made btrfs_delayed_ref_head it's own thing and took out the old delayed_ref_node that was embedded in it. That existed because heads and refs used to be on the same list, but since that isn't the case anymore we don't need it to be that way.

[PATCH 14/21] btrfs: remove type argument from comp_tree_refs [PATCH 15/21] btrfs: switch args for comp_*_refs [PATCH 16/21] btrfs: add a comp_refs() helper
[PATCH 17/21] btrfs: track refs in a rb_tree instead of a list

With lots of snapshots we can end up in merge_delayed_refs for _ever_ because we're constantly going over the list to find matches. I converted the ref list in the ref_head to a rb_tree so we can go straight to our refs, which makes searching and on-the-fly merging happen immediately always, and makes post-processing of the tree significantly faster. Now I'm no longer seeing multi-minute commit times with lots of snapshots.

[PATCH 18/21] btrfs: fix send ioctl on 32bit with 64bit kernel [PATCH 19/21] btrfs: don't call btrfs_start_delalloc_roots in [PATCH 20/21] btrfs: move btrfs_truncate_block out of trans handle [PATCH 21/21] btrfs: add assertions for releasing trans handle

Fixes for various problems I found while running xfstests. One is for 32bit ioctls on a 64bit kernel, two are lockdep fixes, and the last one is just so I can catch myself doing stupid stuff in the future.

Dave this is based on for-next-20170929, and is in my btrfs-next tree in the master branch if you want to just pull it. Thanks,

Josef