Skip to content

btrfs: defrag related to corncer case handling

Qu Wenruo linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs: defrag: break the loop early in defrag_get_extent()fs/btrfs/defrag.c+9 -60 replies
2/2btrfs: defrag: fix missed extent when the lookup lands on the next inodefs/btrfs/defrag.c+8 -20 replies

Reviews trailers per patch

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

PatchFilipe Manana
SeriesR-b
1/2
2/2

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/2] btrfs: defrag related to corncer case handling

The first one is a Sashiko report that we can step into the next inode and continue looping unnecessarily. Fix it by re-ordering the checks.

The second one is another minor corner case where if the defrag range starts inside the last extent, we may skip a valid defrag target. Fix it by doing the backward search properly.

Qu Wenruo (2):
btrfs: defrag: break the loop early in defrag_get_extent()
btrfs: defrag: fix missed extent when the lookup lands on the next
inode

 fs/btrfs/defrag.c | 25 +++++++++++++++++--------
 1 file changed, 17 insertions(+), 8 deletions(-)
Signature · 1 line
2.56.0