slab.h (1ad6b2b1daa8937b2e1ced43802adba5734ba92b) | slab.h (208d02fd5d165389aed0c2b60519cb6b0f5b89f9) |
---|---|
1/*- 2 * Copyright (c) 2010 Isilon Systems, Inc. 3 * Copyright (c) 2010 iX Systems, Inc. 4 * Copyright (c) 2010 Panasas, Inc. 5 * Copyright (c) 2013-2021 Mellanox Technologies, Ltd. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 76 unchanged lines hidden (view full) --- 85 SLAB_TYPESAFE_BY_RCU 86 87#define ARCH_KMALLOC_MINALIGN \ 88 __alignof(unsigned long long) 89 90/* drm-kmod 5.4 compat */ 91#define kfree_async(ptr) kfree(ptr); 92 | 1/*- 2 * Copyright (c) 2010 Isilon Systems, Inc. 3 * Copyright (c) 2010 iX Systems, Inc. 4 * Copyright (c) 2010 Panasas, Inc. 5 * Copyright (c) 2013-2021 Mellanox Technologies, Ltd. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 76 unchanged lines hidden (view full) --- 85 SLAB_TYPESAFE_BY_RCU 86 87#define ARCH_KMALLOC_MINALIGN \ 88 __alignof(unsigned long long) 89 90/* drm-kmod 5.4 compat */ 91#define kfree_async(ptr) kfree(ptr); 92 |
93#define ZERO_OR_NULL_PTR(x) ((x) == NULL) 94 |
|
93static inline gfp_t 94linux_check_m_flags(gfp_t flags) 95{ 96 const gfp_t m = M_NOWAIT | M_WAITOK; 97 98 /* make sure either M_NOWAIT or M_WAITOK is set */ 99 if ((flags & m) == 0) 100 flags |= M_NOWAIT; --- 121 unchanged lines hidden --- | 95static inline gfp_t 96linux_check_m_flags(gfp_t flags) 97{ 98 const gfp_t m = M_NOWAIT | M_WAITOK; 99 100 /* make sure either M_NOWAIT or M_WAITOK is set */ 101 if ((flags & m) == 0) 102 flags |= M_NOWAIT; --- 121 unchanged lines hidden --- |