Merge tag 'for-5.19-rc7-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave...
[linux-block.git] / fs / btrfs / send.c
index d6a2428fe22fb433d56c6d054031dd6055ac6be3..c7dea639a56f9dd2faa756af3d8cf61c31c2c992 100644 (file)
@@ -4911,11 +4911,11 @@ static int put_file_data(struct send_ctx *sctx, u64 offset, u32 len)
 
                if (PageReadahead(page))
                        page_cache_async_readahead(sctx->cur_inode->i_mapping,
-                                                  &sctx->ra, NULL, page, index,
-                                                  last_index + 1 - index);
+                                                  &sctx->ra, NULL, page_folio(page),
+                                                  index, last_index + 1 - index);
 
                if (!PageUptodate(page)) {
-                       btrfs_readpage(NULL, page);
+                       btrfs_read_folio(NULL, page_folio(page));
                        lock_page(page);
                        if (!PageUptodate(page)) {
                                unlock_page(page);