···404404 if (bucket >= ls->ls_rsbtbl_size)405405 return NULL;406406407407- ri = kzalloc(sizeof(struct rsbtbl_iter), GFP_KERNEL);407407+ ri = kzalloc(sizeof(struct rsbtbl_iter), GFP_NOFS);408408 if (!ri)409409 return NULL;410410 if (n == 0)
+3-4
fs/dlm/dir.c
···4949 spin_unlock(&ls->ls_recover_list_lock);50505151 if (!found)5252- de = kzalloc(sizeof(struct dlm_direntry) + len,5353- ls->ls_allocation);5252+ de = kzalloc(sizeof(struct dlm_direntry) + len, GFP_NOFS);5453 return de;5554}5655···211212212213 dlm_dir_clear(ls);213214214214- last_name = kmalloc(DLM_RESNAME_MAXLEN, ls->ls_allocation);215215+ last_name = kmalloc(DLM_RESNAME_MAXLEN, GFP_NOFS);215216 if (!last_name)216217 goto out;217218···322323 if (namelen > DLM_RESNAME_MAXLEN)323324 return -EINVAL;324325325325- de = kzalloc(sizeof(struct dlm_direntry) + namelen, ls->ls_allocation);326326+ de = kzalloc(sizeof(struct dlm_direntry) + namelen, GFP_NOFS);326327 if (!de)327328 return -ENOMEM;328329
-1
fs/dlm/dlm_internal.h
···473473 int ls_low_nodeid;474474 int ls_total_weight;475475 int *ls_node_array;476476- gfp_t ls_allocation;477476478477 struct dlm_rsb ls_stub_rsb; /* for returning errors */479478 struct dlm_lkb ls_stub_lkb; /* for returning errors */
+3-3
fs/dlm/lock.c
···26892689 pass into lowcomms_commit and a message buffer (mb) that we26902690 write our data into */2691269126922692- mh = dlm_lowcomms_get_buffer(to_nodeid, mb_len, ls->ls_allocation, &mb);26922692+ mh = dlm_lowcomms_get_buffer(to_nodeid, mb_len, GFP_NOFS, &mb);26932693 if (!mh)26942694 return -ENOBUFS;26952695···45124512 }4513451345144514 if (flags & DLM_LKF_VALBLK) {45154515- ua->lksb.sb_lvbptr = kzalloc(DLM_USER_LVB_LEN, GFP_KERNEL);45154515+ ua->lksb.sb_lvbptr = kzalloc(DLM_USER_LVB_LEN, GFP_NOFS);45164516 if (!ua->lksb.sb_lvbptr) {45174517 kfree(ua);45184518 __put_lkb(ls, lkb);···45824582 ua = lkb->lkb_ua;4583458345844584 if (flags & DLM_LKF_VALBLK && !ua->lksb.sb_lvbptr) {45854585- ua->lksb.sb_lvbptr = kzalloc(DLM_USER_LVB_LEN, GFP_KERNEL);45854585+ ua->lksb.sb_lvbptr = kzalloc(DLM_USER_LVB_LEN, GFP_NOFS);45864586 if (!ua->lksb.sb_lvbptr) {45874587 error = -ENOMEM;45884588 goto out_put;
+5-10
fs/dlm/lockspace.c
···430430431431 error = -ENOMEM;432432433433- ls = kzalloc(sizeof(struct dlm_ls) + namelen, GFP_KERNEL);433433+ ls = kzalloc(sizeof(struct dlm_ls) + namelen, GFP_NOFS);434434 if (!ls)435435 goto out;436436 memcpy(ls->ls_name, name, namelen);···443443 if (flags & DLM_LSFL_TIMEWARN)444444 set_bit(LSFL_TIMEWARN, &ls->ls_flags);445445446446- if (flags & DLM_LSFL_FS)447447- ls->ls_allocation = GFP_NOFS;448448- else449449- ls->ls_allocation = GFP_KERNEL;450450-451446 /* ls_exflags are forced to match among nodes, and we don't452447 need to require all nodes to have some flags set */453448 ls->ls_exflags = (flags & ~(DLM_LSFL_TIMEWARN | DLM_LSFL_FS |···451456 size = dlm_config.ci_rsbtbl_size;452457 ls->ls_rsbtbl_size = size;453458454454- ls->ls_rsbtbl = kmalloc(sizeof(struct dlm_rsbtable) * size, GFP_KERNEL);459459+ ls->ls_rsbtbl = kmalloc(sizeof(struct dlm_rsbtable) * size, GFP_NOFS);455460 if (!ls->ls_rsbtbl)456461 goto out_lsfree;457462 for (i = 0; i < size; i++) {···463468 size = dlm_config.ci_lkbtbl_size;464469 ls->ls_lkbtbl_size = size;465470466466- ls->ls_lkbtbl = kmalloc(sizeof(struct dlm_lkbtable) * size, GFP_KERNEL);471471+ ls->ls_lkbtbl = kmalloc(sizeof(struct dlm_lkbtable) * size, GFP_NOFS);467472 if (!ls->ls_lkbtbl)468473 goto out_rsbfree;469474 for (i = 0; i < size; i++) {···475480 size = dlm_config.ci_dirtbl_size;476481 ls->ls_dirtbl_size = size;477482478478- ls->ls_dirtbl = kmalloc(sizeof(struct dlm_dirtable) * size, GFP_KERNEL);483483+ ls->ls_dirtbl = kmalloc(sizeof(struct dlm_dirtable) * size, GFP_NOFS);479484 if (!ls->ls_dirtbl)480485 goto out_lkbfree;481486 for (i = 0; i < size; i++) {···522527 mutex_init(&ls->ls_requestqueue_mutex);523528 mutex_init(&ls->ls_clear_proc_locks);524529525525- ls->ls_recover_buf = kmalloc(dlm_config.ci_buffer_size, GFP_KERNEL);530530+ ls->ls_recover_buf = kmalloc(dlm_config.ci_buffer_size, GFP_NOFS);526531 if (!ls->ls_recover_buf)527532 goto out_dirfree;528533
+3-3
fs/dlm/lowcomms.c
···10601060 if (dlm_our_addr(&sas, i))10611061 break;1062106210631063- addr = kmalloc(sizeof(*addr), GFP_KERNEL);10631063+ addr = kmalloc(sizeof(*addr), GFP_NOFS);10641064 if (!addr)10651065 break;10661066 memcpy(addr, &sas, sizeof(*addr));···10991099 struct sockaddr_storage localaddr;11001100 struct sctp_event_subscribe subscribe;11011101 int result = -EINVAL, num = 1, i, addr_len;11021102- struct connection *con = nodeid2con(0, GFP_KERNEL);11021102+ struct connection *con = nodeid2con(0, GFP_NOFS);11031103 int bufsize = NEEDED_RMEM;1104110411051105 if (!con)···11711171static int tcp_listen_for_all(void)11721172{11731173 struct socket *sock = NULL;11741174- struct connection *con = nodeid2con(0, GFP_KERNEL);11741174+ struct connection *con = nodeid2con(0, GFP_NOFS);11751175 int result = -EINVAL;1176117611771177 if (!con)
+4-4
fs/dlm/member.c
···4848 struct dlm_member *memb;4949 int w, error;50505151- memb = kzalloc(sizeof(struct dlm_member), ls->ls_allocation);5151+ memb = kzalloc(sizeof(struct dlm_member), GFP_NOFS);5252 if (!memb)5353 return -ENOMEM;5454···143143144144 ls->ls_total_weight = total;145145146146- array = kmalloc(sizeof(int) * total, ls->ls_allocation);146146+ array = kmalloc(sizeof(int) * total, GFP_NOFS);147147 if (!array)148148 return;149149···226226 continue;227227 log_debug(ls, "new nodeid %d is a re-added member", rv->new[i]);228228229229- memb = kzalloc(sizeof(struct dlm_member), ls->ls_allocation);229229+ memb = kzalloc(sizeof(struct dlm_member), GFP_NOFS);230230 if (!memb)231231 return -ENOMEM;232232 memb->nodeid = rv->new[i];···341341 int *ids = NULL, *new = NULL;342342 int error, ids_count = 0, new_count = 0;343343344344- rv = kzalloc(sizeof(struct dlm_recover), ls->ls_allocation);344344+ rv = kzalloc(sizeof(struct dlm_recover), GFP_NOFS);345345 if (!rv)346346 return -ENOMEM;347347