Skip to content

Commit

Permalink
zsmalloc. Sync patch
Browse files Browse the repository at this point in the history
Sync with the post in
  https://lore.kernel.org/all/20210928084419.mkfu62barwrsvflq@linutronix.de/

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
  • Loading branch information
Sebastian Andrzej Siewior committed Sep 30, 2021
1 parent 6faa4db commit de32315
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mm/zsmalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ static unsigned long cache_alloc_handle(struct zs_pool *pool, gfp_t gfp)
#ifdef CONFIG_PREEMPT_RT
static struct zsmalloc_handle *zs_get_pure_handle(unsigned long handle)
{
return (void *)(handle &~((1 << OBJ_TAG_BITS) - 1));
return (void *)(handle & ~((1 << OBJ_TAG_BITS) - 1));
}
#endif

Expand Down Expand Up @@ -495,7 +495,6 @@ MODULE_ALIAS("zpool-zsmalloc");

/* per-cpu VM mapping areas for zspage accesses that cross page boundaries */
static DEFINE_PER_CPU(struct mapping_area, zs_map_area) = {
/* XXX remove this and use a spin_lock_t in pin_tag() */
.lock = INIT_LOCAL_LOCK(lock),
};

Expand Down

0 comments on commit de32315

Please sign in to comment.