]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging/lustre: Remove OBD_CPT_ALLOC_LARGE
authorOleg Drokin <green@linuxhacker.ru>
Wed, 16 Sep 2015 16:26:52 +0000 (12:26 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Sep 2015 03:32:09 +0000 (20:32 -0700)
Remove OBD_CPT_ALLOC_LARGE define and convert the only user to
libcfs_kvzalloc_cpt.

Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/include/obd_support.h
drivers/staging/lustre/lustre/ptlrpc/service.c

index 30f22d97efb3626f85ab25c8cb5773f621a53c7f..b7467632c4a2b2c9a1c4052e7be4698068026b01 100644 (file)
@@ -634,11 +634,6 @@ do {                                                                         \
        ptr = libcfs_kvzalloc(size, GFP_NOFS);                            \
 } while (0)
 
-#define OBD_CPT_ALLOC_LARGE(ptr, cptab, cpt, size)                           \
-do {                                                                         \
-       ptr = libcfs_kvzalloc_cpt(cptab, cpt, size, GFP_NOFS);                \
-} while (0)
-
 #define OBD_FREE_LARGE(ptr, size)                                           \
 do {                                                                     \
        (void)(size);                                                   \
index 003344ccfffcde1d88a43556fa404be11072be36..40de622450eefa74e5b042391dcf5c4923f4b47a 100644 (file)
@@ -86,8 +86,10 @@ ptlrpc_alloc_rqbd(struct ptlrpc_service_part *svcpt)
        rqbd->rqbd_cbid.cbid_fn = request_in_callback;
        rqbd->rqbd_cbid.cbid_arg = rqbd;
        INIT_LIST_HEAD(&rqbd->rqbd_reqs);
-       OBD_CPT_ALLOC_LARGE(rqbd->rqbd_buffer, svc->srv_cptable,
-                           svcpt->scp_cpt, svc->srv_buf_size);
+       rqbd->rqbd_buffer = libcfs_kvzalloc_cpt(svc->srv_cptable,
+                                               svcpt->scp_cpt,
+                                               svc->srv_buf_size,
+                                               GFP_KERNEL);
        if (rqbd->rqbd_buffer == NULL) {
                kfree(rqbd);
                return NULL;