slab.h (782a90d16af6b235ea51160defcf489fcb5f92a1) | slab.h (ce930365d16356e873acd9a732ae863445b7b4e6) |
---|---|
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-2017 Mellanox Technologies, Ltd. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 68 unchanged lines hidden (view full) --- 77 unsigned cache_flags; 78 unsigned cache_size; 79}; 80 81#define SLAB_HWCACHE_ALIGN (1 << 0) 82#define SLAB_TYPESAFE_BY_RCU (1 << 1) 83#define SLAB_RECLAIM_ACCOUNT (1 << 2) 84 | 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-2017 Mellanox Technologies, Ltd. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 68 unchanged lines hidden (view full) --- 77 unsigned cache_flags; 78 unsigned cache_size; 79}; 80 81#define SLAB_HWCACHE_ALIGN (1 << 0) 82#define SLAB_TYPESAFE_BY_RCU (1 << 1) 83#define SLAB_RECLAIM_ACCOUNT (1 << 2) 84 |
85#define SLAB_DESTROY_BY_RCU \ 86 SLAB_TYPESAFE_BY_RCU 87 |
|
85static inline gfp_t 86linux_check_m_flags(gfp_t flags) 87{ 88 const gfp_t m = M_NOWAIT | M_WAITOK; 89 90 /* make sure either M_NOWAIT or M_WAITOK is set */ 91 if ((flags & m) == 0) 92 flags |= M_NOWAIT; --- 81 unchanged lines hidden --- | 88static inline gfp_t 89linux_check_m_flags(gfp_t flags) 90{ 91 const gfp_t m = M_NOWAIT | M_WAITOK; 92 93 /* make sure either M_NOWAIT or M_WAITOK is set */ 94 if ((flags & m) == 0) 95 flags |= M_NOWAIT; --- 81 unchanged lines hidden --- |