]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Linux 5.18 compat: use address_space_operations->readahead
authorRiccardo Schirone <rschirone91@gmail.com>
Fri, 1 Apr 2022 23:15:25 +0000 (01:15 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 6 Apr 2022 20:15:27 +0000 (13:15 -0700)
commit35ddd8ee2e5fdbaa5b0d94c063bbc1a79ab12cb1
tree027fd97aa560ed0bf718cc65cd6fa0b383b80822
parent10a9f5fc47acc6c9d3475023001264ca5fb741a6
Linux 5.18 compat: use address_space_operations->readahead

->readpages was removed and replaced by ->readahead. Define
zpl_readahead for kernels that don't have ->readpages.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Riccardo Schirone <rschirone91@gmail.com>
Closes #13278
config/kernel-readpages.m4 [new file with mode: 0644]
config/kernel.m4
module/os/linux/zfs/zpl_file.c