diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-04-29 17:53:28 +0200 |
---|---|---|
committer | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-05-09 22:28:36 +0200 |
commit | 7e0a126519b82648b254afcd95a168c15f65ea40 (patch) | |
tree | 7848ec4f08bb1c2a0effddb4ffa12a978cfe0e1f /fs/btrfs | |
parent | mm: Convert swap_readpage to call read_folio instead of readpage (diff) | |
download | linux-7e0a126519b82648b254afcd95a168c15f65ea40.tar.xz linux-7e0a126519b82648b254afcd95a168c15f65ea40.zip |
mm,fs: Remove aops->readpage
With all implementations of aops->readpage converted to aops->read_folio,
we can stop checking whether it's set and remove the member from aops.
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Diffstat (limited to 'fs/btrfs')
-rw-r--r-- | fs/btrfs/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 373df5ebaf8d..57fba5abb059 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c @@ -2402,7 +2402,7 @@ static int btrfs_file_mmap(struct file *filp, struct vm_area_struct *vma) { struct address_space *mapping = filp->f_mapping; - if (!mapping->a_ops->readpage && !mapping->a_ops->read_folio) + if (!mapping->a_ops->read_folio) return -ENOEXEC; file_accessed(filp); |