fs: Introduce aops->read_folio
Change all the callers of ->readpage to call ->read_folio in preference, if it exists. This is a transitional duplication, and will be removed by the end of the series. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
This commit is contained in:
parent
6c2ae0d5db
commit
5efe7448a1
8 changed files with 28 additions and 13 deletions
|
|
@ -3041,7 +3041,7 @@ SYSCALL_DEFINE2(swapon, const char __user *, specialfile, int, swap_flags)
|
|||
/*
|
||||
* Read the swap header.
|
||||
*/
|
||||
if (!mapping->a_ops->readpage) {
|
||||
if (!mapping->a_ops->read_folio && !mapping->a_ops->readpage) {
|
||||
error = -EINVAL;
|
||||
goto bad_swap_unlock_inode;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue