aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/dlm/dlmmaster.c
diff options
context:
space:
mode:
authorKurt Hackel <kurt.hackel@oracle.com>2006-05-01 17:25:21 -0400
committerMark Fasheh <mark.fasheh@oracle.com>2006-06-26 17:43:12 -0400
commitad8100e0d20e0123def9f83c040b68c96c8638f0 (patch)
tree67488f9e1ad5cb9dc0eee3b59df760ddf8f1e0ff /fs/ocfs2/dlm/dlmmaster.c
parentb7084ab538ac2bd71ce494cf1cbbea9fe9db2c07 (diff)
ocfs2: use GFP_NOFS in some dlm operations
Signed-off-by: Kurt Hackel <kurt.hackel@oracle.com> Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to 'fs/ocfs2/dlm/dlmmaster.c')
-rw-r--r--fs/ocfs2/dlm/dlmmaster.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/fs/ocfs2/dlm/dlmmaster.c b/fs/ocfs2/dlm/dlmmaster.c
index ed1601d1831c..b780e159dad2 100644
--- a/fs/ocfs2/dlm/dlmmaster.c
+++ b/fs/ocfs2/dlm/dlmmaster.c
@@ -709,11 +709,11 @@ struct dlm_lock_resource *dlm_new_lockres(struct dlm_ctxt *dlm,
709{ 709{
710 struct dlm_lock_resource *res; 710 struct dlm_lock_resource *res;
711 711
712 res = kmalloc(sizeof(struct dlm_lock_resource), GFP_KERNEL); 712 res = kmalloc(sizeof(struct dlm_lock_resource), GFP_NOFS);
713 if (!res) 713 if (!res)
714 return NULL; 714 return NULL;
715 715
716 res->lockname.name = kmalloc(namelen, GFP_KERNEL); 716 res->lockname.name = kmalloc(namelen, GFP_NOFS);
717 if (!res->lockname.name) { 717 if (!res->lockname.name) {
718 kfree(res); 718 kfree(res);
719 return NULL; 719 return NULL;
@@ -777,7 +777,7 @@ lookup:
777 mlog(0, "allocating a new resource\n"); 777 mlog(0, "allocating a new resource\n");
778 /* nothing found and we need to allocate one. */ 778 /* nothing found and we need to allocate one. */
779 alloc_mle = (struct dlm_master_list_entry *) 779 alloc_mle = (struct dlm_master_list_entry *)
780 kmem_cache_alloc(dlm_mle_cache, GFP_KERNEL); 780 kmem_cache_alloc(dlm_mle_cache, GFP_NOFS);
781 if (!alloc_mle) 781 if (!alloc_mle)
782 goto leave; 782 goto leave;
783 res = dlm_new_lockres(dlm, lockid, namelen); 783 res = dlm_new_lockres(dlm, lockid, namelen);
@@ -1532,7 +1532,7 @@ way_up_top:
1532 spin_unlock(&dlm->spinlock); 1532 spin_unlock(&dlm->spinlock);
1533 1533
1534 mle = (struct dlm_master_list_entry *) 1534 mle = (struct dlm_master_list_entry *)
1535 kmem_cache_alloc(dlm_mle_cache, GFP_KERNEL); 1535 kmem_cache_alloc(dlm_mle_cache, GFP_NOFS);
1536 if (!mle) { 1536 if (!mle) {
1537 response = DLM_MASTER_RESP_ERROR; 1537 response = DLM_MASTER_RESP_ERROR;
1538 mlog_errno(-ENOMEM); 1538 mlog_errno(-ENOMEM);
@@ -1940,7 +1940,7 @@ int dlm_dispatch_assert_master(struct dlm_ctxt *dlm,
1940 int ignore_higher, u8 request_from, u32 flags) 1940 int ignore_higher, u8 request_from, u32 flags)
1941{ 1941{
1942 struct dlm_work_item *item; 1942 struct dlm_work_item *item;
1943 item = kcalloc(1, sizeof(*item), GFP_KERNEL); 1943 item = kcalloc(1, sizeof(*item), GFP_NOFS);
1944 if (!item) 1944 if (!item)
1945 return -ENOMEM; 1945 return -ENOMEM;
1946 1946
@@ -2175,14 +2175,14 @@ int dlm_migrate_lockres(struct dlm_ctxt *dlm, struct dlm_lock_resource *res,
2175 */ 2175 */
2176 2176
2177 ret = -ENOMEM; 2177 ret = -ENOMEM;
2178 mres = (struct dlm_migratable_lockres *) __get_free_page(GFP_KERNEL); 2178 mres = (struct dlm_migratable_lockres *) __get_free_page(GFP_NOFS);
2179 if (!mres) { 2179 if (!mres) {
2180 mlog_errno(ret); 2180 mlog_errno(ret);
2181 goto leave; 2181 goto leave;
2182 } 2182 }
2183 2183
2184 mle = (struct dlm_master_list_entry *) kmem_cache_alloc(dlm_mle_cache, 2184 mle = (struct dlm_master_list_entry *) kmem_cache_alloc(dlm_mle_cache,
2185 GFP_KERNEL); 2185 GFP_NOFS);
2186 if (!mle) { 2186 if (!mle) {
2187 mlog_errno(ret); 2187 mlog_errno(ret);
2188 goto leave; 2188 goto leave;
@@ -2639,7 +2639,7 @@ int dlm_migrate_request_handler(struct o2net_msg *msg, u32 len, void *data)
2639 2639
2640 /* preallocate.. if this fails, abort */ 2640 /* preallocate.. if this fails, abort */
2641 mle = (struct dlm_master_list_entry *) kmem_cache_alloc(dlm_mle_cache, 2641 mle = (struct dlm_master_list_entry *) kmem_cache_alloc(dlm_mle_cache,
2642 GFP_KERNEL); 2642 GFP_NOFS);
2643 2643
2644 if (!mle) { 2644 if (!mle) {
2645 ret = -ENOMEM; 2645 ret = -ENOMEM;