@@ -410,10 +410,10 @@ static struct config_group *make_cluster(struct config_group *g,
410410 struct dlm_comms * cms = NULL ;
411411 void * gps = NULL ;
412412
413- cl = kzalloc (sizeof (struct dlm_cluster ), GFP_KERNEL );
414- gps = kcalloc (3 , sizeof (struct config_group * ), GFP_KERNEL );
415- sps = kzalloc (sizeof (struct dlm_spaces ), GFP_KERNEL );
416- cms = kzalloc (sizeof (struct dlm_comms ), GFP_KERNEL );
413+ cl = kzalloc (sizeof (struct dlm_cluster ), GFP_NOFS );
414+ gps = kcalloc (3 , sizeof (struct config_group * ), GFP_NOFS );
415+ sps = kzalloc (sizeof (struct dlm_spaces ), GFP_NOFS );
416+ cms = kzalloc (sizeof (struct dlm_comms ), GFP_NOFS );
417417
418418 if (!cl || !gps || !sps || !cms )
419419 goto fail ;
@@ -482,9 +482,9 @@ static struct config_group *make_space(struct config_group *g, const char *name)
482482 struct dlm_nodes * nds = NULL ;
483483 void * gps = NULL ;
484484
485- sp = kzalloc (sizeof (struct dlm_space ), GFP_KERNEL );
486- gps = kcalloc (2 , sizeof (struct config_group * ), GFP_KERNEL );
487- nds = kzalloc (sizeof (struct dlm_nodes ), GFP_KERNEL );
485+ sp = kzalloc (sizeof (struct dlm_space ), GFP_NOFS );
486+ gps = kcalloc (2 , sizeof (struct config_group * ), GFP_NOFS );
487+ nds = kzalloc (sizeof (struct dlm_nodes ), GFP_NOFS );
488488
489489 if (!sp || !gps || !nds )
490490 goto fail ;
@@ -536,7 +536,7 @@ static struct config_item *make_comm(struct config_group *g, const char *name)
536536{
537537 struct dlm_comm * cm ;
538538
539- cm = kzalloc (sizeof (struct dlm_comm ), GFP_KERNEL );
539+ cm = kzalloc (sizeof (struct dlm_comm ), GFP_NOFS );
540540 if (!cm )
541541 return ERR_PTR (- ENOMEM );
542542
@@ -569,7 +569,7 @@ static struct config_item *make_node(struct config_group *g, const char *name)
569569 struct dlm_space * sp = config_item_to_space (g -> cg_item .ci_parent );
570570 struct dlm_node * nd ;
571571
572- nd = kzalloc (sizeof (struct dlm_node ), GFP_KERNEL );
572+ nd = kzalloc (sizeof (struct dlm_node ), GFP_NOFS );
573573 if (!nd )
574574 return ERR_PTR (- ENOMEM );
575575
@@ -705,7 +705,7 @@ static ssize_t comm_addr_write(struct dlm_comm *cm, const char *buf, size_t len)
705705 if (cm -> addr_count >= DLM_MAX_ADDR_COUNT )
706706 return - ENOSPC ;
707707
708- addr = kzalloc (sizeof (* addr ), GFP_KERNEL );
708+ addr = kzalloc (sizeof (* addr ), GFP_NOFS );
709709 if (!addr )
710710 return - ENOMEM ;
711711
@@ -868,7 +868,7 @@ int dlm_nodeid_list(char *lsname, int **ids_out, int *ids_count_out,
868868
869869 ids_count = sp -> members_count ;
870870
871- ids = kcalloc (ids_count , sizeof (int ), GFP_KERNEL );
871+ ids = kcalloc (ids_count , sizeof (int ), GFP_NOFS );
872872 if (!ids ) {
873873 rv = - ENOMEM ;
874874 goto out ;
@@ -886,7 +886,7 @@ int dlm_nodeid_list(char *lsname, int **ids_out, int *ids_count_out,
886886 if (!new_count )
887887 goto out_ids ;
888888
889- new = kcalloc (new_count , sizeof (int ), GFP_KERNEL );
889+ new = kcalloc (new_count , sizeof (int ), GFP_NOFS );
890890 if (!new ) {
891891 kfree (ids );
892892 rv = - ENOMEM ;
0 commit comments