staging: lustre: ptlrpc: change GFP_NOFS to GFP_KERNEL

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>
This commit is contained in:
NeilBrown 2018-03-02 10:31:25 +11:00 committed by Greg Kroah-Hartman
parent 9f0e4c2b82
commit f8b1c4a8d8
2 changed files with 3 additions and 3 deletions

View 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)

View 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;