From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out30-112.freemail.mail.aliyun.com (out30-112.freemail.mail.aliyun.com [115.124.30.112]) (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 896CA385533; Wed, 15 Apr 2026 06:17:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.112 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776233853; cv=none; b=gHwNhIBDMDGFSwvnQcn2l2/i4K1F1rD8i0NkRu3/GaFYEczj13CDGYhKKGvzH5p2t5y+MqfFfMynTKjFK9bcmQT6iyjKD78gpgBUYxIuETTLH7mcwi/oWRhYfelwKfsNFl2BI1FZ/fUNWkKRMGCRzJg5WeSFqrD7aFSSWyRJBOw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776233853; c=relaxed/simple; bh=0kyXt1pxywNixDcsQy4hIVJ6nZaxcZDNRftEj1MgC3o=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Xps2QLRsg2kAckK+fKmXcrLJPwT7M1C9kXdYU4bvY0iJEKIKYf5g9kDeMTB1hlclVVEjegjzes1SRdRgb7sFX43qmC3et8r/1SEljk+6z7mOxFp/v13GieCXnoxfSgpVeiBPYKJCH0lOZtwvxUicMJLN7CVrc06SZo1VQeQhJe8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=ynDQi691; arc=none smtp.client-ip=115.124.30.112 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="ynDQi691" DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1776233847; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type; bh=x2HHnAsQZ4MfYHDSO/spA2qHLwiRh3qZPNKbpsbyQmc=; b=ynDQi691ow2I3Fu/4pdfhP3OjMauRh4943hu2ZXZRfrvu/wP+NaoHzTSUEdFKWbS3mcOVSreILCJCGijua2REguj9Jmvw6f/5CJAbQeoQPV0rG+BJCHinfsyQ9GpIq1UGWpPlNLpmjc8jwLvXhEhf8kzrXol/mKlqe7rAso6MKs= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam033037033178;MF=baolin.wang@linux.alibaba.com;NM=1;PH=DS;RN=27;SR=0;TI=SMTPD_---0X13dQMQ_1776233844; Received: from 30.74.144.121(mailfrom:baolin.wang@linux.alibaba.com fp:SMTPD_---0X13dQMQ_1776233844 cluster:ay36) by smtp.aliyun-inc.com; Wed, 15 Apr 2026 14:17:25 +0800 Message-ID: <19f2cc25-de3f-4a32-bbc6-44dda466f615@linux.alibaba.com> Date: Wed, 15 Apr 2026 14:17:24 +0800 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 7.2 v2 03/12] mm/huge_memory: remove READ_ONLY_THP_FOR_FS from file_thp_enabled() To: Zi Yan , "Matthew Wilcox (Oracle)" , Song Liu Cc: Chris Mason , David Sterba , Alexander Viro , Christian Brauner , Jan Kara , Andrew Morton , David Hildenbrand , Lorenzo Stoakes , "Liam R. Howlett" , Nico Pache , Ryan Roberts , Dev Jain , Barry Song , Lance Yang , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , Shuah Khan , linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org References: <20260413192030.3275825-1-ziy@nvidia.com> <20260413192030.3275825-4-ziy@nvidia.com> From: Baolin Wang In-Reply-To: <20260413192030.3275825-4-ziy@nvidia.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 4/14/26 3:20 AM, Zi Yan wrote: > Replace it with a check on the max folio order of the file's address space > mapping, making sure PMD_ORDER is supported. > > Signed-off-by: Zi Yan > --- LGTM. Reviewed-by: Baolin Wang