From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9B2D830DED0 for ; Wed, 18 Feb 2026 12:26:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771417613; cv=none; b=M/it3HIFU8kLEK+TaktpFbxS4Fs4MsumH4S/XYxIF369z6f9msTGpp8q/7loqKOUMzRTpE4T7m3bIlerdyvtnUgfVtLv7SoPGOhrC2VuOuB3MNrDopuuSm+oY4bFChtd3mPadOjvClev65MWgeNPwXvNAGjkd67DGxsWmCwZWdg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771417613; c=relaxed/simple; bh=U4pG+1BY2WAJ9WYWipP++J5GtRwxXpRXG/wabQubCyI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=oq9w8F0Xne2e5jXgFGiRq4OrnIxeronx7tYAvpBi9985v2h/ykibre0stFnMi6YS5NMUCEPl7KpG5xNkPzoFlOBZKxgy+WXcKKf+ifg5wek9cqdeoxPGC5GXlmJ/mgnuMvfbsT9VLVvRXEJYX+jO/co0RYLHRwahYgbEaWoObCE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 52C9C339; Wed, 18 Feb 2026 04:26:44 -0800 (PST) Received: from [10.164.19.71] (unknown [10.164.19.71]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3F31D3F62B; Wed, 18 Feb 2026 04:26:45 -0800 (PST) Message-ID: Date: Wed, 18 Feb 2026 17:56:42 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 5/5] mm: rmap: support batched unmapping for file large folios To: Barry Song <21cnbao@gmail.com>, Baolin Wang Cc: "David Hildenbrand (Arm)" , akpm@linux-foundation.org, catalin.marinas@arm.com, will@kernel.org, lorenzo.stoakes@oracle.com, ryan.roberts@arm.com, Liam.Howlett@oracle.com, vbabka@suse.cz, rppt@kernel.org, surenb@google.com, mhocko@suse.com, riel@surriel.com, harry.yoo@oracle.com, jannh@google.com, willy@infradead.org, linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <142919ac14d3cf70cba370808d85debe089df7b4.1766631066.git.baolin.wang@linux.alibaba.com> <46d0b6bf-db7e-418f-a497-983db4d4d786@kernel.org> Content-Language: en-US From: Dev Jain In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 13/02/26 10:49 am, Barry Song wrote: > On Mon, Feb 9, 2026 at 5:43 PM Baolin Wang > wrote: > [...] >>>> --- >>>> mm/rmap.c | 7 ++++--- >>>> 1 file changed, 4 insertions(+), 3 deletions(-) >>>> >>>> diff --git a/mm/rmap.c b/mm/rmap.c >>>> index 985ab0b085ba..e1d16003c514 100644 >>>> --- a/mm/rmap.c >>>> +++ b/mm/rmap.c >>>> @@ -1863,9 +1863,10 @@ static inline unsigned int >>>> folio_unmap_pte_batch(struct folio *folio, >>>> end_addr = pmd_addr_end(addr, vma->vm_end); >>>> max_nr = (end_addr - addr) >> PAGE_SHIFT; >>>> - /* We only support lazyfree batching for now ... */ >>>> - if (!folio_test_anon(folio) || folio_test_swapbacked(folio)) >>>> + /* We only support lazyfree or file folios batching for now ... */ >>>> + if (folio_test_anon(folio) && folio_test_swapbacked(folio)) >>>> return 1; >>> Right, the anon folio handling would require a bit more work in the >>> >>> >>> } else if (folio_test_anon(folio)) { >>> >>> branch. >>> >>> Do you intend to tackle that one as well? >> >> I'll reply to the fixup. >> >> I'm not sure whether Barry has time to continue this work. If he does >> not, I can take over. Barry? > I expect to have some availability after April 1st. > In the meantime, please feel free to send along any patches > if you and Dev would like to move forward before then :-) On it :) > > Best regards > Barry