staging: lustre: remove ALLOC_ATOMIC_TRY

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>
This commit is contained in:
Greg Kroah-Hartman 2014-07-12 20:37:56 -07:00
parent 0918cf03c5
commit 15191cac20
2 changed files with 1 additions and 7 deletions

View file

@ -72,12 +72,6 @@
#define NUM_CACHEPAGES totalram_pages #define NUM_CACHEPAGES totalram_pages
#endif #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 DECL_MMSPACE mm_segment_t __oldfs
#define MMSPACE_OPEN \ #define MMSPACE_OPEN \
do { __oldfs = get_fs(); set_fs(get_ds()); } while (0) do { __oldfs = get_fs(); set_fs(get_ds()); } while (0)

View file

@ -310,7 +310,7 @@ void request_in_callback(lnet_event_t *ev)
/* We moaned above already... */ /* We moaned above already... */
return; return;
} }
req = ptlrpc_request_cache_alloc(ALLOC_ATOMIC_TRY); req = ptlrpc_request_cache_alloc(GFP_ATOMIC);
if (req == NULL) { if (req == NULL) {
CERROR("Can't allocate incoming request descriptor: " CERROR("Can't allocate incoming request descriptor: "
"Dropping %s RPC from %s\n", "Dropping %s RPC from %s\n",