mirror of
https://gitee.com/bianbu-linux/linux-6.6-fh
synced 2025-04-24 23:37:11 -04:00
fs: Convert mpage_readpage to mpage_read_folio
mpage_readpage still works in terms of pages, and has not been audited for correctness with large folios, so include an assertion that the filesystem is not passing it large folios. Convert all the filesystems to call mpage_read_folio() instead of mpage_readpage(). Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
This commit is contained in:
parent
2c69e20579
commit
f132ab7d3a
14 changed files with 49 additions and 47 deletions
|
@ -205,9 +205,9 @@ static int fat_writepages(struct address_space *mapping,
|
|||
return mpage_writepages(mapping, wbc, fat_get_block);
|
||||
}
|
||||
|
||||
static int fat_readpage(struct file *file, struct page *page)
|
||||
static int fat_read_folio(struct file *file, struct folio *folio)
|
||||
{
|
||||
return mpage_readpage(page, fat_get_block);
|
||||
return mpage_read_folio(folio, fat_get_block);
|
||||
}
|
||||
|
||||
static void fat_readahead(struct readahead_control *rac)
|
||||
|
@ -344,7 +344,7 @@ int fat_block_truncate_page(struct inode *inode, loff_t from)
|
|||
static const struct address_space_operations fat_aops = {
|
||||
.dirty_folio = block_dirty_folio,
|
||||
.invalidate_folio = block_invalidate_folio,
|
||||
.readpage = fat_readpage,
|
||||
.read_folio = fat_read_folio,
|
||||
.readahead = fat_readahead,
|
||||
.writepage = fat_writepage,
|
||||
.writepages = fat_writepages,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue