From: Muchun Song <muchun.song@linux.dev>
To: Yichong Chen <chenyichong@uniontech.com>
Cc: akpm@linux-foundation.org, osalvador@suse.de, david@kernel.org,
mike.kravetz@oracle.com, linux-mm@kvack.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] hugetlb: make hugepage_put_subpool() tolerate NULL
Date: Tue, 21 Jul 2026 11:02:50 +0800 [thread overview]
Message-ID: <98A020DC-5600-4BB9-A30E-86DABA5A9D5C@linux.dev> (raw)
In-Reply-To: <20260720073841.1389354-1-chenyichong@uniontech.com>
> On Jul 20, 2026, at 15:38, Yichong Chen <chenyichong@uniontech.com> wrote:
>
> Both callers of hugepage_put_subpool() check whether the subpool pointer
> is NULL before calling it. Move the NULL check into
> hugepage_put_subpool() so callers can use the helper unconditionally.
>
> This is a follow-up cleanup after using hugepage_put_subpool() from the
> hugetlbfs_fill_super() failure path.
>
> Signed-off-by: Yichong Chen <chenyichong@uniontech.com>
Reviewed-by: Muchun Song <muchun.song@linux.dev>
prev parent reply other threads:[~2026-07-21 3:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-20 2:18 [PATCH] hugetlbfs: release subpool on fill_super failure Yichong Chen
2026-07-20 5:54 ` Andrew Morton
2026-07-20 7:19 ` Yichong Chen
2026-07-20 7:38 ` [PATCH] hugetlb: make hugepage_put_subpool() tolerate NULL Yichong Chen
2026-07-21 3:02 ` Muchun Song [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=98A020DC-5600-4BB9-A30E-86DABA5A9D5C@linux.dev \
--to=muchun.song@linux.dev \
--cc=akpm@linux-foundation.org \
--cc=chenyichong@uniontech.com \
--cc=david@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mike.kravetz@oracle.com \
--cc=osalvador@suse.de \
/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