Whamcloud - gitweb
LU-10560 lustre_compat: Convert GFP_TEMPORARY to GFP_KERNEL 26/31926/2
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Fri, 2 Feb 2018 16:45:54 +0000 (08:45 -0800)
committerJohn L. Hammond <john.hammond@intel.com>
Thu, 3 May 2018 18:18:18 +0000 (18:18 +0000)
The 4.14 kernel removes this gfp.h define.

Adjust the code to use GFP_KERNEL as the upstream
patch does.

Lustre-change: https://review.whamcloud.com/31152
Lustre-commit: f01bed03905d424fab81bee84a7b622f141e4f79

Change-Id: I40fff2724499fa17aa285507e0fd9b21f4afc070
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Minh Diep <minh.diep@intel.com>
Reviewed-on: https://review.whamcloud.com/31926
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
libcfs/libcfs/libcfs_ptask.c

index f54b302..275c01b 100644 (file)
@@ -360,11 +360,11 @@ static int cfs_ptengine_padata_init(struct cfs_ptask_engine *engine,
        {
                char *pa_mask_buff, *cb_mask_buff;
 
-               pa_mask_buff = (char *)__get_free_page(GFP_TEMPORARY);
+               pa_mask_buff = (char *)__get_free_page(GFP_KERNEL);
                if (pa_mask_buff == NULL)
                        GOTO(err_free_par_mask, rc = -ENOMEM);
 
-               cb_mask_buff = (char *)__get_free_page(GFP_TEMPORARY);
+               cb_mask_buff = (char *)__get_free_page(GFP_KERNEL);
                if (cb_mask_buff == NULL) {
                        free_page((unsigned long)pa_mask_buff);
                        GOTO(err_free_par_mask, rc = -ENOMEM);