]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Linux 4.6 compat: PAGE_CACHE_SIZE removal
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 5 Apr 2016 19:39:37 +0000 (12:39 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 6 Apr 2016 00:26:56 +0000 (17:26 -0700)
commit8b1899d3fbab354dfe57b2293216a76579e5d805
tree91d4b3ec5b26ab958150da9a372c928ea95c35c0
parent63e0828c174e84ec583d34327b3fc1c5f53fa39c
Linux 4.6 compat: PAGE_CACHE_SIZE removal

As described in torvalds/linux@4a2d057e the macros
PAGE_CACHE_{SIZE,SHIFT,MASK,ALIGN} macros were originally introduced
to make it possible to add bigger chunks to the page cache.  This
never panned out and it has therefore been removed from the kernel.

ZFS has been updated to use the PAGE_{SIZE,SHIFT,MASK,ALIGN} macros
and calls to page_cache_release() have been replaced with put_page().

There was no need to introduce a configure check for this because
these interfaces have existed for a very long time.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Chunwei Chen <tuxoko@gmail.com>
Closes #4489
module/zfs/zfs_vnops.c
module/zfs/zfs_znode.c