From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-177.mta1.migadu.com (out-177.mta1.migadu.com [95.215.58.177]) (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 8944F37C0F6 for ; Mon, 6 Jul 2026 17:14:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783358048; cv=none; b=RmbMLB3KAhMwFsjHe8SwfVQ0hLpNC0DHR+jsW0EtOdBWrUfbN4zt8MhXzVZ2jwD35hlAyMIpp5knAX5dDl4I9PJnvxsTvp9HMTD8Ojrw5tn/2/6kWDyAKJGgDcO49i9qIo++qRaa+6gel3Ih5t7BQR2tEve2p955SLrsxIWvEGI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783358048; c=relaxed/simple; bh=pPFlTAr557nu7u+673QFQ4VoYFf/Xp4XwM16VWjYyKw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OCEsGQyhWG+Qe933MGTqqQOsPFJGr7aJrQRSw4mvnlmpSI+1oQBHcbRRR0BCCbRXD3AirnxFzOFSlb9EydSr1H/7J4v7CmePyB7lxqbN5UFGBJ77hSGO6/cmDg092K1oMBVrRG0XlylEJ6JLYp6STifKlsq6tFiaWBIk6AfboJk= 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=wq/bsZxk; arc=none smtp.client-ip=95.215.58.177 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="wq/bsZxk" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1783358034; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wYBXnEO5ho5yjc38RkkAzyA0H5Kuo8pmYf/iF3Dm/aE=; b=wq/bsZxk+uUleNpI29BoyVUAWtfH0wjUWyCRpB+20iruD48WIQXzTnjww7CPzrszu8IdgO wYquS+7dDzM7KW46jECbdbFquPnTSCJU089t54O7PvTC7peMoJKVsxX+GrQB2ZOHDm/ZPH MH4rb6WAxX5U1f6gaJFIncjmVYDvs48= From: Usama Arif To: Nico Pache Cc: Usama Arif , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Andrew Morton , David Hildenbrand , Lorenzo Stoakes , Zi Yan , Baolin Wang , "Liam R. Howlett" , Ryan Roberts , Dev Jain , Barry Song , Lance Yang , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , Jonathan Corbet , Shuah Khan Subject: Re: [PATCH 4/8] mm/khugepaged: fix outdated comments Date: Mon, 6 Jul 2026 10:13:37 -0700 Message-ID: <20260706171338.3614400-1-usama.arif@linux.dev> In-Reply-To: <20260706154500.39178-5-npache@redhat.com> References: Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT On Mon, 6 Jul 2026 09:44:51 -0600 Nico Pache wrote: > Fix comment in collapse_scan_pmd() that still described the old > folio_mapcount() > folio_ref_count() check and a "512" false-positive > scenario. The code now uses folio_expected_ref_count() != folio_ref_count() > which doesn't suffer from the same limitation. > > Fix comment in collapse_huge_page() that referenced ptep_clear_flush, > when the code actually uses pmdp_collapse_flush. > > Fix comment in __collapse_huge_page_swapin() that referenced the old > function name khugepaged_scan_pmd, now collapse_scan_pmd. > > Also clean up some simple typos and stale terminology (mmap_sem -> > mmap_lock, PG_lock -> folio lock, page -> folio, grammar). > > Assisted-by: Cursor(claude-sonnet-4):4.6 > Signed-off-by: Nico Pache > --- > mm/khugepaged.c | 23 ++++++++++------------- > 1 file changed, 10 insertions(+), 13 deletions(-) > Acked-by: Usama Arif