diff options
| author | Qu Wenruo <wqu@suse.com> | 2025-03-17 17:40:47 +1030 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2025-05-15 14:30:42 +0200 |
| commit | a4a636a43741c2706868fb97dff9a83d398ac9e3 (patch) | |
| tree | 10e0889e74c1e914e5a63413ebd980fe3a5525f0 /fs/btrfs/dev-replace.c | |
| parent | 70a376475d68c9c4fb6d98cdf78f0912950293d3 (diff) | |
btrfs: send: prepare put_file_data() for large data folios
Currently put_file_data() can only accept a page sized folio. However
the function itself is not that complex, it's just copying data from
filemap folio into the send buffer.
Make it support large data folios:
- Change the loop to use file offset instead of page index
- Calculate @pg_offset and @cur_len after getting the folio
- Remove the "WARN_ON(folio_order(folio));" line
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions