staging: lustre: ptlrpc: change GFP_NOFS to GFP_KERNEL
authorNeilBrown <neilb@suse.com>
Thu, 1 Mar 2018 23:31:25 +0000 (10:31 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 Mar 2018 12:17:27 +0000 (04:17 -0800)
These allocations are performed during initialization,
so they don't need GFP_NOFS.

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/ptlrpc/sec_bulk.c
drivers/staging/lustre/lustre/ptlrpc/service.c

index 577c582..625b952 100644 (file)
@@ -377,7 +377,7 @@ static inline void enc_pools_alloc(void)
        page_pools.epp_pools =
                kvzalloc(page_pools.epp_max_pools *
                                sizeof(*page_pools.epp_pools),
-                               GFP_NOFS);
+                               GFP_KERNEL);
 }
 
 static inline void enc_pools_free(void)
index 4941722..f37364e 100644 (file)
@@ -2046,7 +2046,7 @@ static int ptlrpc_main(void *arg)
                        goto out;
        }
 
-       env = kzalloc(sizeof(*env), GFP_NOFS);
+       env = kzalloc(sizeof(*env), GFP_KERNEL);
        if (!env) {
                rc = -ENOMEM;
                goto out_srv_fini;
@@ -2072,7 +2072,7 @@ static int ptlrpc_main(void *arg)
        }
 
        /* Alloc reply state structure for this one */
-       rs = kvzalloc(svc->srv_max_reply_size, GFP_NOFS);
+       rs = kvzalloc(svc->srv_max_reply_size, GFP_KERNEL);
        if (!rs) {
                rc = -ENOMEM;
                goto out_srv_fini;