Skip to content

btrfs: teach send to avoid trashing the page cache with data

[email protected] linux-btrfs 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest0 of 2 patches 1 replyIn review
  2. v12 patches 6 repliesSuperseded

Patches in v2 No applies recorded yet

None of the 2 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] btrfs: teach send to avoid trashing the page cache with data

From: Filipe Manana <[email protected]>

When doing a send operation, we read the data of all extents we need to send into the page cache, which almost always is wasteful as it can lead to eviction of other things from the page cache that are more useful for applications (and maybe other kernel subsystems). This patchset makes send evict the data from the page cache once it has sent it. The actual work is in the second patch, while the first one is just preparatory work. More details in the changelogs.

V2: Fixed it to work with subpage sector size. It was broken as we could
end up zeroing out part of a page when extents are not sector size aligned. Reported by Qu.

Filipe Manana (2):
btrfs: send: keep the current inode open while processing it
btrfs: send: avoid trashing the page cache

 fs/btrfs/send.c | 133 +++++++++++++++++++++++++++++++++++++++++-------
 1 file changed, 114 insertions(+), 19 deletions(-)
Signature · 1 line
2.35.1