Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp316595lqa; Sat, 27 Apr 2024 03:51:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVUiky3LDiXLZIgzS/Rgig5ShgsksoVoD2iWkIXvv89ILXbmP5t7o+hqsjHi7cqN8zzSQfaaFQ+PRb3B2bDG3obKLEl+u4pmA/QOML6FA== X-Google-Smtp-Source: AGHT+IFkIrDWlHVm4tYgDIhisOW930buxrFOu4WMQQIJbzNdcaQH+JgVINknpkbCsg+CZbCNzHuO X-Received: by 2002:a05:6358:6a56:b0:186:b3e5:abb2 with SMTP id c22-20020a0563586a5600b00186b3e5abb2mr6662996rwh.22.1714215117812; Sat, 27 Apr 2024 03:51:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714215117; cv=pass; d=google.com; s=arc-20160816; b=jHrzPkJKoE6zNPJY0JopTbC8f8xh3yPmSjrq3OVEsD9wco8WuggO1duEPa2GTRol+8 nWRmtIg3gYUCBccSsFINRp/0CFgmD5Derzs/G2WqAVrLMnZlv1wqYEzK1iOTPAZfPm5b zoud47GM0hSNO52pr8OP7TUYcIZSYOItvqVl0t2++Ctk8MEIeCQkozYhZ/4nk+OI/5KE gnNhFTwkdoGZFWPJeD7PGM2XsXkvdNNYeDlygtgG7nCR0UphPV2om7H+26R9cXFz95SD QkpLBnk7fHpuIq28Jfg00hmg2Hf1bJriscWM7QbODNXPRu01nDa3XmYd9cpqZDk8reJH OmlA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=cI4NhT54XJQW9j011jj9qavFEqDFKemcmwzLd5Nc2A8=; fh=otoPMJXgcU9A0bnXnWmL8CUTCpxTJirUZxmlJGYa09Y=; b=X1lOT9TEB7vQQ7mUaxfkXxexLy9LVhtOWSJfQGszZVsgreMaFStQB3MfJwhUkSCJ+B w8MC9W0soPDo33ndemIhupJQu/YAeum5MSZzRoDCJy72E9UEOJ8lYNyxyPn8fE/REjc2 D7oU3QoMv1ak0bcdWaeUmyZaa6fi01QS+cZf1slVQqFpFtdXHeneVgFcXpAix7HMml1f 9TcWcCFf2n0/TLB4RtXM5li3dm5GGFcGubyp1fixtkCIM70D99gL5gvCYloMePru/+FU gwIrQ64z/5EeLh48vS5dhx1A1EMbEsa6ODrgRi9qZMK1el6eLwGzNJReCdSGee9htqA3 xNuA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=bPAWAAb3; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-160893-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160893-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id eh27-20020a05622a579b00b0043744be9d2asi19638021qtb.538.2024.04.27.03.51.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Apr 2024 03:51:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160893-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=bPAWAAb3; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-160893-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160893-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 01F411C21918 for ; Sat, 27 Apr 2024 04:52:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4A44E3F9D6; Sat, 27 Apr 2024 04:52:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="bPAWAAb3" Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 591B11E484; Sat, 27 Apr 2024 04:52:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714193568; cv=none; b=EOZ6Fq1iqDj3ZBkjMEtprpNeC/MsdowP2B3luzMm0/6sDO/GMjP9r5tIyxHmkOXjWrMgY8qwt8j6a9xuB0eoxL7h8TddFW3oyzyylJIZ4XvMVDj6wadIMiHEcrKHAaptKOZu6m0lmgS57RmC87p3cF46fJfmECtThgUth1w1G6c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714193568; c=relaxed/simple; bh=pEJMKPSL/4T4c39L6pON1wSi92j6YfVi3whE3Qt053Y=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bAlQJXI22CUiBnCJeaGV8aX4h2h6H0FoD9jZtwJg+JrwMMiz46XVANze6vmAcskIvitHhP1YNivp6d6Q2W5KIAgP0H1IW42L1dx90jJNAEYaSZoc96/rKK7mWoxnZg2BC0xcCIGjoYUyUMZXJYMzqesyjOc3pl0oaYZCtBu+cxI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=bPAWAAb3; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=cI4NhT54XJQW9j011jj9qavFEqDFKemcmwzLd5Nc2A8=; b=bPAWAAb36C3P7xHAHzgnjaFMDU Y3JaYL8W0w6BCbiw4fK0P4bIYdYeAwF+l0SmQteiR75RBPZBMMfqUrWx/kfPkQ5osfV1yOl9/wkDX EW5O9JUCXsDVsJAcXVPnT0sOdJoNlEzh5HF319wEqhfI/l+dAt9Z4/BiAMqCRRlxLL7MaCZGBYJ1n h9Xo52YenoDDhRkWerBLXskUz0cpjOhMVqsii+9ojdP6kHhvuO5pEkBaJbC39T7laYB9sWswqxRh9 Jof0E3VnLBsAheIVsnjrMVTF3LSFSWhtmWe3vZJd2REjC3xWJwioZb9+SzISJULpQ9Gg7uMelDVAi 8K9J4GQQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1s0a3F-0000000EpDA-1S8o; Sat, 27 Apr 2024 04:52:41 +0000 Date: Fri, 26 Apr 2024 21:52:41 -0700 From: Christoph Hellwig To: Matthew Wilcox Cc: Christoph Hellwig , "Pankaj Raghav (Samsung)" , djwong@kernel.org, brauner@kernel.org, david@fromorbit.com, chandan.babu@oracle.com, akpm@linux-foundation.org, linux-fsdevel@vger.kernel.org, hare@suse.de, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-xfs@vger.kernel.org, mcgrof@kernel.org, gost.dev@samsung.com, p.raghav@samsung.com Subject: Re: [PATCH v4 07/11] iomap: fix iomap_dio_zero() for fs bs > system page size Message-ID: References: <20240425113746.335530-1-kernel@pankajraghav.com> <20240425113746.335530-8-kernel@pankajraghav.com> 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-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Sat, Apr 27, 2024 at 04:26:44AM +0100, Matthew Wilcox wrote: > There's a series of commits in linux-mm with the titles: > > sparc: use is_huge_zero_pmd() > mm: add is_huge_zero_folio() > mm: add pmd_folio() > mm: convert migrate_vma_collect_pmd to use a folio > mm: convert huge_zero_page to huge_zero_folio > mm: convert do_huge_pmd_anonymous_page to huge_zero_folio > dax: use huge_zero_folio > mm: rename mm_put_huge_zero_page to mm_put_huge_zero_folio > > > it available for non-hugetlb setups? Not only would this be cleaner > > and more efficient, but it would actually work for the case where you'd > > have to zero more than 1MB on a 4k PAGE_SIZE system, which doesn't > > seem impossible with 2MB folios. > > It is available for non-hugetlb setups. It is however allocated on > demand, so it might not be available. We could just export get_huge_zero_page/put_huge_zero_page and make sure it is is available for block sizse > PAGE_SIZE file systems, or is there a good argument against that?