Whamcloud - gitweb
LU-8560 libcfs: handle page_cache_*() removal in newer kernels 85/22385/3
authorJames Simmons <uja.ornl@yahoo.com>
Thu, 8 Sep 2016 16:39:14 +0000 (12:39 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 13 Sep 2016 20:02:55 +0000 (20:02 +0000)
commit3792aa13dab69c1a8de50ea23c5a4352f9bd0f45
treec57797a0e23094910490b64925248139e557bcae
parentb172cd5bc80d2560056794cd640a95303ad42405
LU-8560 libcfs: handle page_cache_*() removal in newer kernels

Since page cache handling never was handled differently than
normal pages the page_cache_*() macros have been removed
starting with linux kernel 4.6. Now put_page() and get_page()
need to be used instead.

Second change is that get_user_page dropped the first two
arguments in linux kernel version 4.6. We handle this change
as well in libcfs.

Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Change-Id: I84c347a55c45e0794b913134f1abdd45926c24e8
Reviewed-on: http://review.whamcloud.com/22385
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Frank Zago <fzago@cray.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
17 files changed:
contrib/scripts/checkpatch.pl
libcfs/autoconf/lustre-libcfs.m4
libcfs/libcfs/linux/linux-curproc.c
lustre/include/lustre_net.h
lustre/include/lustre_patchless_compat.h
lustre/llite/dir.c
lustre/llite/llite_mmap.c
lustre/llite/rw.c
lustre/llite/rw26.c
lustre/llite/vvp_dev.c
lustre/llite/vvp_page.c
lustre/lmv/lmv_obd.c
lustre/mdc/mdc_request.c
lustre/obdecho/echo_client.c
lustre/osd-ldiskfs/osd_io.c
lustre/ptlrpc/client.c
lustre/target/tgt_main.c