aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/ulp
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/infiniband/ulp')
-rw-r--r--drivers/infiniband/ulp/iser/iser_memory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/ulp/iser/iser_memory.c b/drivers/infiniband/ulp/iser/iser_memory.c
index 5e122501fd80..3aedd59b8a84 100644
--- a/drivers/infiniband/ulp/iser/iser_memory.c
+++ b/drivers/infiniband/ulp/iser/iser_memory.c
@@ -114,7 +114,7 @@ int iser_start_rdma_unaligned_sg(struct iscsi_iser_cmd_task *iser_ctask,
114 114
115 if (cmd_data_len > ISER_KMALLOC_THRESHOLD) 115 if (cmd_data_len > ISER_KMALLOC_THRESHOLD)
116 mem = (void *)__get_free_pages(GFP_NOIO, 116 mem = (void *)__get_free_pages(GFP_NOIO,
117 long_log2(roundup_pow_of_two(cmd_data_len)) - PAGE_SHIFT); 117 ilog2(roundup_pow_of_two(cmd_data_len)) - PAGE_SHIFT);
118 else 118 else
119 mem = kmalloc(cmd_data_len, GFP_NOIO); 119 mem = kmalloc(cmd_data_len, GFP_NOIO);
120 120
@@ -211,7 +211,7 @@ void iser_finalize_rdma_unaligned_sg(struct iscsi_iser_cmd_task *iser_ctask,
211 211
212 if (cmd_data_len > ISER_KMALLOC_THRESHOLD) 212 if (cmd_data_len > ISER_KMALLOC_THRESHOLD)
213 free_pages((unsigned long)mem_copy->copy_buf, 213 free_pages((unsigned long)mem_copy->copy_buf,
214 long_log2(roundup_pow_of_two(cmd_data_len)) - PAGE_SHIFT); 214 ilog2(roundup_pow_of_two(cmd_data_len)) - PAGE_SHIFT);
215 else 215 else
216 kfree(mem_copy->copy_buf); 216 kfree(mem_copy->copy_buf);
217 217