From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D317233A03A for ; Mon, 16 Mar 2026 19:41:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773690118; cv=none; b=gLVPRCIIIy4+bCBJLdOt2w2+gnnRJPBh2/n68FrMO/C8w1c/G7NfWq1KT1tRxnIn7wCsc0ab3Y4We6KiKtw5PtMY/xMe1utayXRcUlI3NCXSXfX20WC9RnITPfgH/lRj+J9jR4siO94hw8XEqSZTmAFFa3/HjPJM3uCsBKv/Y2Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773690118; c=relaxed/simple; bh=1NtvT4EJ/Ckct9Ou9lVpgKq0RbkjW7z//cTUuUc4hbc=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=T+n+TKEX3dbU1VNKFkOSAsIbCbOcTrYERy7O3frQgY3jBvLnADinlKdbmM69hRFaLW/ZnzhdrpKOEW8K/Zk7FeD2A58BJppqNUaacOlT4MF3w7J9pccg/WJ2Cct6P2qe9AEe8KFrAQwfgF9eXowd0jkz1irHDVLtt4vfvPn6ah8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=MT72woAm; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="MT72woAm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1DCEFC19421; Mon, 16 Mar 2026 19:41:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1773690118; bh=1NtvT4EJ/Ckct9Ou9lVpgKq0RbkjW7z//cTUuUc4hbc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=MT72woAmtBqyBZx2hX002+tcXvGabIiodBFvGg3VbCZ1upvHeUOcSHn3ywj7wCuN2 mLOVLIh0DH2D6OHGOEuTeYKDD+aqt/6FhwkmRXSavfaBJHGEEGfhZ4b3DNhV0QXmad H1bEvzD5yPamWKb5a3MvjZCGctuKCWwsejwiU0a8= Date: Mon, 16 Mar 2026 12:41:57 -0700 From: Andrew Morton To: Vernon Yang Cc: Barry Song <21cnbao@gmail.com>, david@kernel.org, lorenzo.stoakes@oracle.com, ziy@nvidia.com, dev.jain@arm.com, lance.yang@linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Vernon Yang Subject: Re: [PATCH mm-new v8 4/4] mm: khugepaged: skip lazy-free folios Message-Id: <20260316124157.bfc7e00976c22bc028913945@linux-foundation.org> In-Reply-To: References: <20260221093918.1456187-1-vernon2gm@gmail.com> <20260221093918.1456187-5-vernon2gm@gmail.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 26 Feb 2026 15:55:45 +0800 Vernon Yang wrote: > Hi Andrew, could you please squash the following fix into this patch? yup. > also remove "if" in the changelog above. So you want it like this? : All folios in VM_DROPPABLE are lazyfree, Collapsing maintains that : property, so we can just collapse and memory pressure in the future will : free it up. In contrast, collapsing in !VM_DROPPABLE does not maintain : that property, the collapsed folio will not be lazyfree and memory : pressure in the future will not be able to free it up.