Skip to content

FITRIM improvement

Nikolay Borisov linux-btrfs 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest15 patches 18 repliesIn review
  2. v312 patches 13 repliesSuperseded
  3. v212 patches 5 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v115 patches18 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15btrfs: Honour FITRIM range constraints during free space trimfs/btrfs/extent-tree.c+19 -61 reply
2/15btrfs: combine device update operations during transaction commitfs/btrfs/dev-replace.c fs/btrfs/disk-io.c fs/btrfs/transaction.c +3 more+51 -611 reply
3/15btrfs: Handle pending/pinned chunks before blockgroup relocation during device shrinkfs/btrfs/volumes.c+24 -333 replies
4/15btrfs: Rename and export clear_btree_io_treefs/btrfs/extent_io.c fs/btrfs/extent_io.h fs/btrfs/transaction.c+33 -330 replies
5/15btrfs: Populate ->orig_block_len during read_one_chunkfs/btrfs/volumes.c+22 -190 replies
6/15btrfs: Introduce new bits for device allocation treefs/btrfs/extent_io.h+4 -00 replies
7/15btrfs: Implement set_extent_bits_nowaitfs/btrfs/extent_io.c fs/btrfs/extent_io.h+9 -00 replies
8/15btrfs: Stop using call_rcu for device freeingfs/btrfs/volumes.c fs/btrfs/volumes.h+8 -133 replies
9/15btrfs: replace pending/pinned chunks lists with io treefs/btrfs/ctree.h fs/btrfs/disk-io.c fs/btrfs/extent-tree.c +7 more+65 -1244 replies
10/15btrfs: Transpose btrfs_close_devices/btrfs_mapping_tree_free in close_ctreefs/btrfs/disk-io.c+1 -10 replies
11/15btrfs: Remove 'trans' argument from find_free_dev_extent(_start)fs/btrfs/extent-tree.c fs/btrfs/volumes.c fs/btrfs/volumes.h+10 -450 replies
12/15btrfs: Factor out in_range macrofs/btrfs/ctree.h fs/btrfs/extent-tree.c fs/btrfs/volumes.c+2 -20 replies
13/15btrfs: Optimize unallocated chunks discardfs/btrfs/extent-tree.c fs/btrfs/extent_io.h fs/btrfs/extent_map.c+66 -32 replies
14/15btrfs: Implement find_first_clear_extent_bitfs/btrfs/extent_io.c fs/btrfs/extent_io.h+75 -00 replies
15/15btrfs: Switch btrfs_trim_free_extents to find_first_clear_extent_bitfs/btrfs/extent-tree.c+26 -630 replies

Reviews trailers per patch

2 of 15 patches have a Reviewed-by or Acked-by.

PatchDavid Sterba
1/15
2/15
3/15
4/15R-b
5/15R-b
6/15
7/15
8/15
9/15
10/15
11/15
12/15
13/15
14/15
15/15

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

Read the v4 thread

Cover letter [PATCH v4 00/15] FITRIM improvement

Here is the (hopefully final) v4 of the fitrim patches. Main changes since v3:

* Fixed leaked btrfs_path in patch 3.

* Fixed multiple assignemnt on single line in patch 3.

* New patch 9 transposing btrfs_close_devices/btrfs_mapping_tree_free, in v3 this change was wrongly squashed in patch "Introduce new bits for device allocation tree".

* Introduced new patch "Implement set_extent_bits_nowait" and use it instead of exposing __set_extent_bit in patch 9.

* Introduce new patch "Stop using call_rcu for device freeing" which simplifies the resulting code freeing the mapping tree, this is prep for patch 9. This also fixes a bunch of places that weren't correctly freeing the extent mapping tree upon device close.

* Fixed ASSERT condition in patch 2

Jeff Mahoney (1):
btrfs: replace pending/pinned chunks lists with io tree

Nikolay Borisov (14):
btrfs: Honour FITRIM range constraints during free space trim
btrfs: combine device update operations during transaction commit
btrfs: Handle pending/pinned chunks before blockgroup relocation
during device shrink
btrfs: Rename and export clear_btree_io_tree
btrfs: Populate ->orig_block_len during read_one_chunk
btrfs: Introduce new bits for device allocation tree
btrfs: Implement set_extent_bits_nowait
btrfs: Stop using call_rcu for device freeing
btrfs: Transpose btrfs_close_devices/btrfs_mapping_tree_free in
close_ctree
btrfs: Remove 'trans' argument from find_free_dev_extent(_start)
btrfs: Factor out in_range macro
btrfs: Optimize unallocated chunks discard
btrfs: Implement find_first_clear_extent_bit
btrfs: Switch btrfs_trim_free_extents to find_first_clear_extent_bit

 fs/btrfs/ctree.h            |   8 +-
 fs/btrfs/dev-replace.c      |   2 +-
 fs/btrfs/disk-io.c          |  20 +--
 fs/btrfs/extent-tree.c      | 102 +++++--------
 fs/btrfs/extent_io.c        | 108 +++++++++++++
 fs/btrfs/extent_io.h        |  15 ++
 fs/btrfs/extent_map.c       |  37 +++++
 fs/btrfs/extent_map.h       |   1 -
 fs/btrfs/free-space-cache.c |   4 -
 fs/btrfs/transaction.c      |  51 +------
 fs/btrfs/transaction.h      |   2 +-
 fs/btrfs/volumes.c          | 296 ++++++++++++++----------------------
 fs/btrfs/volumes.h          |  24 +--
 13 files changed, 341 insertions(+), 329 deletions(-)
Signature · 1 line
2.17.1