staging: lustre: remove ALLOC_ATOMIC_TRY
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Jul 2014 03:37:56 +0000 (20:37 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Jul 2014 03:37:56 +0000 (20:37 -0700)
Come on, is it so hard to type "GFP_ATOMIC"?  Look, it's less
characters!!!

Cc: Andreas Dilger <andreas.dilger@intel.com>
Cc: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/include/linux/libcfs/linux/linux-mem.h
drivers/staging/lustre/lustre/ptlrpc/events.c

index 526c77c4dd84a2c2b7da66a0f6437ea699ec9267..0f2fd79e5ec8bef0bdab7c4f1dc77bff0b06e2f7 100644 (file)
 #define NUM_CACHEPAGES totalram_pages
 #endif
 
-/*
- * In Linux there is no way to determine whether current execution context is
- * blockable.
- */
-#define ALLOC_ATOMIC_TRY   GFP_ATOMIC
-
 #define DECL_MMSPACE           mm_segment_t __oldfs
 #define MMSPACE_OPEN \
        do { __oldfs = get_fs(); set_fs(get_ds()); } while (0)
index f1a56930c00617320de50df8f12c483e70c6c0c8..c3ec21d5d29fd373d45309d7ef45d64f29d0f738 100644 (file)
@@ -310,7 +310,7 @@ void request_in_callback(lnet_event_t *ev)
                        /* We moaned above already... */
                        return;
                }
-               req = ptlrpc_request_cache_alloc(ALLOC_ATOMIC_TRY);
+               req = ptlrpc_request_cache_alloc(GFP_ATOMIC);
                if (req == NULL) {
                        CERROR("Can't allocate incoming request descriptor: "
                               "Dropping %s RPC from %s\n",
This page took 0.030581 seconds and 5 git commands to generate.