Received: by 2002:a05:7208:c250:b0:86:f851:443 with SMTP id w16csp939665rbd; Thu, 13 Jun 2024 01:49:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVMcveM4WkrdaHFpQ0B/YhTrGDhW4QXv4aqxHIanzmC0XAovcioJ34VSZ7SXNEmedJHmF9IgmbXF1dfuQ+fePRqS6BZOZetdaiKs+Vbig== X-Google-Smtp-Source: AGHT+IFzPxP96L4/enwpO3luVPKbxc385LScJfCGn0w3fTv6jVMxvWeB2WruaZPwXiBn1JLNN/yA X-Received: by 2002:a05:6214:3b81:b0:6b0:92f2:3b60 with SMTP id 6a1803df08f44-6b1a6965ad3mr41702676d6.37.1718268559911; Thu, 13 Jun 2024 01:49:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718268559; cv=pass; d=google.com; s=arc-20160816; b=h3eDZ4XZmXL4vSSc1ZfpOfOjDAqouneem4tde2Dr/PY5iHK+zwveTgCJpXzzw2vEnn 4BJuPlkPRUR2nKXa7ypBRM/D4fflXsxANb7qW2fnXTF1/MZbrEXFayZRLLjPmUBf/1e1 CPfjwa+pf4KxlMUynfmAvJqKum5Dnz9h/1Em4R/rQwvHXJQp31/SX2HCSazO0t7QwC3q 3isW57pOIJ2klZSJQCwyJhIgvR4mvmYcozhC4bKuhSHZ+8q37K1KHF9PoE9OIaGxsJKV 3oGiFDc4s6ZI3cLnb9Rs31cqvhQtPCTZvHRcedXXIdfS0cnvQjjlpz09wXqTaqX8hbZ/ DHPw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date; bh=Sb7qCGpsRvDVcL0lT7LWEy/O5ghwWni7YwpIn3Z6Uvg=; fh=WY+EXP+0Z/8nNJlQuRNcCQoLfef3+UXTTkI4wdoTqXM=; b=OWNDuxim7Xc3O4Nq6N4R91CjCYt+JytP9t0YSJz3xQmUDEiwXe8d2yEn9295N4/82W EYRJQl+cM+GudjyYpETJ7Fud62Y+5Mmm4j95xqulT5jHrdbRrYvPxjNhiLAwKB/mX38Q gr+xXnkw8EjAXgLpkH5eEi17CKZ5u5hTuShBAEDEcqXSNPsaluRyan1VBYhDaKbN+OC/ P9j0llv6HOhm1cpDxVdNo4gXsRFb6Wu1vKMB9WoCA/KVdsRJu2Z9f2i3VtOIhZvf/J9b uq9JcS8yxPiLS3Sg04uPhk1kOKEuVWpeuVheJmwYcDopQbducqLItzFNi7clz5016oV+ y/aw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=lst.de); spf=pass (google.com: domain of linux-kernel+bounces-212873-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212873-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 6a1803df08f44-6b2a5afd2d8si9910246d6.219.2024.06.13.01.49.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 01:49:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212873-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; arc=pass (i=1 spf=pass spfdomain=lst.de); spf=pass (google.com: domain of linux-kernel+bounces-212873-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212873-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 A4AF51C208C5 for ; Thu, 13 Jun 2024 08:49:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EC36813EFE1; Thu, 13 Jun 2024 08:47:31 +0000 (UTC) Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (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 0670113D285; Thu, 13 Jun 2024 08:47:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718268451; cv=none; b=iC3+9jK8GL1rOyz+s5LSezEFT21y4cUNWm46TZ9n5Kyv1qfQPiUDm+jAWedzHHyol6b886eEzgYRT0n5naSAyR1kjaGgD5l2HDn1ktiCXszfHLARSz1n4wLfTNFtIY80jqqYrgYZjcD9egXh21JBN7Ln+JbphT//2djjTD27dXE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718268451; c=relaxed/simple; bh=1jn2IOyVFJmKqsbYasAJ7Focahse7tNeIcTWErY6sB8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZXGr5NDJQXzU0jD3NOfGSc4gf5IHvQwgbYcQEWDHSVpktZSoZFttz2cmQanCknCKKoXwrqUI/JnC8ciVSZDEE/3YM3jKYYDFKvuNe5UmPS61FvavURwPqFkQNuDDtkWwiOD4DiyItchvYBVPDqk0YrKgBjR2WtOTTGA5RjzCReE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id 6F2D968AFE; Thu, 13 Jun 2024 10:47:26 +0200 (CEST) Date: Thu, 13 Jun 2024 10:47:25 +0200 From: Christoph Hellwig To: "Pankaj Raghav (Samsung)" Cc: david@fromorbit.com, djwong@kernel.org, chandan.babu@oracle.com, brauner@kernel.org, akpm@linux-foundation.org, willy@infradead.org, mcgrof@kernel.org, linux-mm@kvack.org, hare@suse.de, linux-kernel@vger.kernel.org, yang@os.amperecomputing.com, Zi Yan , linux-xfs@vger.kernel.org, p.raghav@samsung.com, linux-fsdevel@vger.kernel.org, hch@lst.de, gost.dev@samsung.com, cl@os.amperecomputing.com, john.g.garry@oracle.com Subject: Re: [PATCH v7 11/11] xfs: enable block size larger than page size support Message-ID: <20240613084725.GC23371@lst.de> References: <20240607145902.1137853-1-kernel@pankajraghav.com> <20240607145902.1137853-12-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: <20240607145902.1137853-12-kernel@pankajraghav.com> User-Agent: Mutt/1.5.17 (2007-11-01) On Fri, Jun 07, 2024 at 02:59:02PM +0000, Pankaj Raghav (Samsung) wrote: > --- a/fs/xfs/libxfs/xfs_ialloc.c > +++ b/fs/xfs/libxfs/xfs_ialloc.c > @@ -3019,6 +3019,11 @@ xfs_ialloc_setup_geometry( > igeo->ialloc_align = mp->m_dalign; > else > igeo->ialloc_align = 0; > + > + if (mp->m_sb.sb_blocksize > PAGE_SIZE) > + igeo->min_folio_order = mp->m_sb.sb_blocklog - PAGE_SHIFT; > + else > + igeo->min_folio_order = 0; > } The minimum folio order isn't really part of the inode (allocation) geometry, is it?