Merge branch 'android12-5.10' into android12-5.10-lts
Sync up with android12-5.10 for the following commits:90732d426e
UPSTREAM: mm/compaction: correct deferral logic for proactive compactiond0a88ae479
ANDROID: Enable GKI Dr. No Enforcemente6a59da61e
ANDROID: media: v4l2-core: Fix deadlock in vendor hookfdb1cfe2d3
FROMGIT: dma_buf: remove dmabuf sysfs teardown before release1dc0dd2573
ANDROID: update mtk symbol lista669748346
UPSTREAM: mfd: syscon: Free the allocated name field of struct regmap_configcffe67a351
ANDROID: Give UIC cmd timeout a larger value3bca0b5344
ANDROID: binder: retry security_secid_to_secctx()9fdfeda4c9
ANDROID: update new gki symbol for mtk1dd167be9f
ANDROID: mm, kasan: fix for "integrate page_alloc init with HW_TAGS"f215850ea0
UPSTREAM: kasan: fix conflict with page poisoninga3da917661
ANDROID: GKI: Export two more mm symbols for GKI0497b9601b
ANDROID: Update symbol list for mtk0f27e1d317
FROMLIST: kfence: skip all GFP_ZONEMASK allocations8478d8dc53
FROMLIST: kfence: move the size check to the beginning of __kfence_alloc()ddabf14bea
ANDROID: ABI: update allowed list for galaxy11cec52238
FROMGIT: f2fs: add sysfs nodes to get GC info for each GC modefdc46110cb
ANDROID: abi_gki_aarch64_qcom: Add android_debug_for_each_module0bb433e014
ANDROID: debug_symbols: Add android_debug_for_each_modulea0429aa1d0
ANDROID: ABI: Update ABI for symbol list updatesc68e5ca9f8
ANDROID: GKI: Update symbols to symbol listaac5a77959
ANDROID: Update symbol list for mtk42fc1faf44
UPSTREAM: block, bfq: set next_rq to waker_bfqq->next_rq in waker injectione37cc8a09f
UPSTREAM: mm/mremap: hold the rmap lock in write mode when moving page table entries.9b136eab76
ANDROID: pstore/ram: Add backward compatibility for ramoops reserved regiondf97297651
ANDROID: Update symbol list for mtk4322bb07e8
ANDROID: vendor_hooks: Modify the function name007213b1d0
BACKPORT: FROMLIST: kasan: add memzero int for unaligned size at DEBUG7acbce0bf4
BACKPORT: FROMLIST: mm: move helper to check slub_debug_enabledd6eeae59b5
ANDROID: ABI: initial update allowed list for galaxy Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Change-Id: I6d28f1be3cbd8a1fed86d2d647e6c2bb55221b0a
This commit is contained in:
15
mm/slab.h
15
mm/slab.h
@@ -242,10 +242,18 @@ extern unsigned long get_each_object_track(struct kmem_cache *s,
|
||||
int (*fn)(const struct kmem_cache *, const void *,
|
||||
const struct track *, void *), void *private);
|
||||
extern slab_flags_t slub_debug;
|
||||
static inline bool __slub_debug_enabled(void)
|
||||
{
|
||||
return static_branch_unlikely(&slub_debug_enabled);
|
||||
}
|
||||
#else
|
||||
static inline void print_tracking(struct kmem_cache *s, void *object)
|
||||
{
|
||||
}
|
||||
static inline bool __slub_debug_enabled(void)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
#ifdef CONFIG_SLUB
|
||||
static inline unsigned long get_each_object_track(struct kmem_cache *s,
|
||||
struct page *page, enum track_item alloc,
|
||||
@@ -264,11 +272,10 @@ static inline unsigned long get_each_object_track(struct kmem_cache *s,
|
||||
*/
|
||||
static inline bool kmem_cache_debug_flags(struct kmem_cache *s, slab_flags_t flags)
|
||||
{
|
||||
#ifdef CONFIG_SLUB_DEBUG
|
||||
VM_WARN_ON_ONCE(!(flags & SLAB_DEBUG_FLAGS));
|
||||
if (static_branch_unlikely(&slub_debug_enabled))
|
||||
if (IS_ENABLED(CONFIG_SLUB_DEBUG))
|
||||
VM_WARN_ON_ONCE(!(flags & SLAB_DEBUG_FLAGS));
|
||||
if (__slub_debug_enabled())
|
||||
return s->flags & flags;
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user