mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Vlastimil Babka <vbabka@suse.com>
To: Xuewen Wang <wangxuewen@kylinos.cn>, akpm@linux-foundation.org
Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org,
	Harry Yoo <harry.yoo@oracle.com>, Hao Li <hao.li@linux.dev>
Subject: Re: [PATCH v2 0/3] Cleanup and fix tools/mm/slabinfo utility
Date: Mon, 25 May 2026 10:38:21 +0200	[thread overview]
Message-ID: <bc96e4ee-faac-4bed-ac3d-54f1003be62d@suse.com> (raw)
In-Reply-To: <20260518062159.80664-1-wangxuewen@kylinos.cn>

On 5/18/26 08:21, Xuewen Wang wrote:
> This series fixes one bug and cleans up two code quality issues in tools/mm/slabinfo:
> 
> 1. Fix trace disable logic inversion: when the user intends to disable
>    tracing (!tracing) and it is currently enabled (s->trace),
>    set_obj() was called with 1 instead of 0, which is opposite to
>    the intended behavior. All other options (sanity_checks, red_zone,
>    poison, store_user) in the same function use 0 for the disable
>    case.
> 
> 2. Remove dead assignment in get_obj_and_str(): `x = NULL` sets the
>    local parameter variable instead of `*x`, which is a no-op since
>    `*x` was already set to NULL on the line above.
> 
> 3. Remove redundant slab->partial assignment in read_slab_dir():
>    slab->partial is assigned by get_obj("partial") and then
>    immediately overwritten by get_obj_and_str("partial", &t).
> 
> Xuewen Wang (3):
>   tools/mm/slabinfo: Fix trace disable logic inversion
>   tools/mm/slabinfo: remove dead assignment in get_obj_and_str()
>   tools/mm/slabinfo: remove redundant slab->partial assignment
> 
>  tools/mm/slabinfo.c | 8 +++-----
>  1 file changed, 3 insertions(+), 5 deletions(-)

Thanks, applied to slab/for-next

> 
> ---
> Changes in v2:
> - Fix author email mismatch
> - Add Fixes tag for the bug fix (patch 1)
> - Remove unnecessary braces in patch 2 per reviewer suggestion
> 
> Patches 1/3 and 3/3 carry Reviewed-by tag from SeongJae Park.
> 
> v1:
>     https://lore.kernel.org/all/20260515065325.4009527-1-18810879172@163.com/
> 


      parent reply	other threads:[~2026-05-25  8:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-18  6:21 Xuewen Wang
2026-05-18  6:21 ` [PATCH v2 1/3] tools/mm/slabinfo: Fix trace disable logic inversion Xuewen Wang
2026-05-18  6:21 ` [PATCH v2 2/3] tools/mm/slabinfo: remove dead assignment in get_obj_and_str() Xuewen Wang
2026-05-19  0:32   ` SeongJae Park
2026-05-18  6:21 ` [PATCH v2 3/3] tools/mm/slabinfo: remove redundant slab->partial assignment Xuewen Wang
2026-05-25  8:38 ` Vlastimil Babka [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bc96e4ee-faac-4bed-ac3d-54f1003be62d@suse.com \
    --to=vbabka@suse.com \
    --cc=akpm@linux-foundation.org \
    --cc=hao.li@linux.dev \
    --cc=harry.yoo@oracle.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=wangxuewen@kylinos.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®