Skip to content

Misc refactoring of check_file_extent

Nikolay Borisov linux-btrfs 1 version Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 9 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3btrfs-progs: check: lowmem: Factor out inline extent checking code in its own functioncheck/mode-lowmem.c+83 -595 replies
2/3btrfs-progs: check: lowmem: Refactor extent len test in check_file_extent_inlinecheck/mode-lowmem.c+10 -91 reply
3/3btrfs-progs: check: lowmem: Refactor extent type checks in check_file_extentcheck/mode-lowmem.c+7 -51 reply

Reviews trailers per patch

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

PatchLu FengqiQu Wenruo
SeriesR-b
1/3R-b
2/3R-b
3/3R-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 0/3] Misc refactoring of check_file_extent

While looking at check_file_extent I thought that the code might be a bit cleaner than it actually is and cleaner as well. The first patch factors out the code dealing with inline extents into a separate function aptly named check_file_extent_inline. This allows to remove some inline-specific variable from check_file_extent. Patch 2 just moves the final check in the new function into the already existing branch handling the !compressed case. Finally the check which detects unknown extent types is moved first in check_file_extent, followed by the code to handle inline extents and finally the existing code to handle regular/prealloc extents is left intact.

This patchset brings no functional changes.

Nikolay Borisov (3):
btrfs-progs: check: lowmem: Factor out inline extent checking code in
its own function
btrfs-progs: check: lowmem: Refactor extent len test in
check_file_extent_inline
btrfs-progs: check: lowmem: Refactor extent type checks in
check_file_extent

 check/mode-lowmem.c | 151 ++++++++++++++++++++++++++------------------
 1 file changed, 89 insertions(+), 62 deletions(-)
Signature · 1 line
2.17.1