diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2021-03-18 03:38:26 +0100 |
---|---|---|
committer | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-05-08 20:45:56 +0200 |
commit | 2ebdd1df316636c2faf25a1780e12553adf09cf7 (patch) | |
tree | 2f8db9df88f03e888c30271c7d1c54ef572ab827 /fs/btrfs/send.c | |
parent | fs: Convert is_dirty_writeback() to take a folio (diff) | |
download | linux-2ebdd1df316636c2faf25a1780e12553adf09cf7.tar.xz linux-2ebdd1df316636c2faf25a1780e12553adf09cf7.zip |
mm/readahead: Convert page_cache_async_readahead to take a folio
Removes a couple of calls to compound_head and saves a few bytes.
Also convert verity's read_file_data_page() to be folio-based.
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/btrfs/send.c')
-rw-r--r-- | fs/btrfs/send.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c index 7d1642937274..b327dbe0cbf5 100644 --- a/fs/btrfs/send.c +++ b/fs/btrfs/send.c @@ -4986,7 +4986,8 @@ static int put_file_data(struct send_ctx *sctx, u64 offset, u32 len) if (PageReadahead(page)) { page_cache_async_readahead(inode->i_mapping, &sctx->ra, - NULL, page, index, last_index + 1 - index); + NULL, page_folio(page), index, + last_index + 1 - index); } if (!PageUptodate(page)) { |