Merge tag 'folio-5.19' of git://git.infradead.org/users/willy/pagecache
[linux-2.6-microblaze.git] / fs / btrfs / send.c
index 5a05bea..fa56890 100644 (file)
@@ -4907,11 +4907,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);