From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-181.mta0.migadu.com (out-181.mta0.migadu.com [91.218.175.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EC2CA401A18 for ; Tue, 21 Jul 2026 03:03:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784602997; cv=none; b=kSHkoROESd3KfKG/cAneMLXyQXqd4PI/tKrfP9qzqZJmPBP3rCJhnaPyLI86LeFNbQRdeM7yoR5kPhyuipgZEYFQezx7NL4UwKU9bMeFLg47LN0As9kf6N5S2HeQP9vqFAkINLHQ2xTGUvFsb6gC6gPqqriY797AjglaRa142u0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784602997; c=relaxed/simple; bh=WY1BXnEyn2X9MlXInlj/nbkVTjCgziMUySZCzcAZFP0=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Message-Id:References:To; b=I2GPeOLaES8eejj0hP/EV5Z6SAfb2epFDU9XlzaE6DcBzy/CUhbOtYJf/tDAMmI6N+dkjF3R5ecEmbvlR5jf66jFL6/Zyw0BV+MhvkG/bI2uhNPrD3IG6UD9rmPY10ktmemAD5zExFe3IvKPqQgalafWurPBr7SjXWx4BqoJyzE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=PE29k8HI; arc=none smtp.client-ip=91.218.175.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="PE29k8HI" Content-Type: text/plain; charset=us-ascii DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1784602987; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DkNtIMp/J18eg4sorgjLzrufSFJYeDEgHsB8O5f8hAQ=; b=PE29k8HIe0IR4YXQFpWOImBtnvek5ugSGWjkUKjRPLjllLb5vK/Bk+CO3/OkczdaQY5T+s z66Z68RuW3zWUo/7tDxpcTs8pgZLS4ZsdPtuToehqniFekHYW56FWRL3GRNYPMtksMBN6V +vTkqhjHDhLQFZXgAPirj29qKbavdFg= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.600.51.1.1\)) Subject: Re: [PATCH] hugetlb: make hugepage_put_subpool() tolerate NULL X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Muchun Song In-Reply-To: <20260720073841.1389354-1-chenyichong@uniontech.com> Date: Tue, 21 Jul 2026 11:02:50 +0800 Cc: akpm@linux-foundation.org, osalvador@suse.de, david@kernel.org, mike.kravetz@oracle.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: 7bit Message-Id: <98A020DC-5600-4BB9-A30E-86DABA5A9D5C@linux.dev> References: <20260719225438.041287a56c87effe61796483@linux-foundation.org> <20260720073841.1389354-1-chenyichong@uniontech.com> To: Yichong Chen X-Migadu-Flow: FLOW_OUT > On Jul 20, 2026, at 15:38, Yichong Chen 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 Reviewed-by: Muchun Song