[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZcuqR7KeBPuarevU@google.com>
Date: Tue, 13 Feb 2024 17:43:35 +0000
From: Yosry Ahmed <yosryahmed@...gle.com>
To: Chengming Zhou <zhouchengming@...edance.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>, Johannes Weiner <hannes@...xchg.org>,
Nhat Pham <nphamcs@...il.com>, linux-mm@...ck.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/2] mm/zswap: global lru and shrinker shared by all zswap_pools
> >> @@ -353,30 +353,16 @@ static struct zswap_pool *zswap_pool_create(char *type, char *compressor)
> >> if (ret)
> >> goto error;
> >>
> >> - zswap_alloc_shrinker(pool);
> >> - if (!pool->shrinker)
> >> - goto error;
> >> -
> >> - pr_debug("using %s compressor\n", pool->tfm_name);
> >> -
> >
> > Why are we removing this debug print?
This pr_debug() was introduced when dynamic zswap pools were introduced,
and it was supposed to be printed right after the compressor is
initialized. IOW, it is supposed to be after the call to
cpuhp_state_add_instance() succeeds. The call to zswap_alloc_shrinker()
was mistakenly added above that pr_debug() call.
Anyway, I just realized you are now removing all failure cases between
than pr_debug() and the zswap_pool_debug() below, so there is no need to
keep both. You are right.
I am wondering if these debug prints are useful at all now, but that's a
question for another day :)
Powered by blists - more mailing lists