From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A0794EB64DC for ; Wed, 21 Jun 2023 09:03:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230017AbjFUJD2 (ORCPT ); Wed, 21 Jun 2023 05:03:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230376AbjFUJCz (ORCPT ); Wed, 21 Jun 2023 05:02:55 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2835119AC; Wed, 21 Jun 2023 02:02:53 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id D3C6F1F8B5; Wed, 21 Jun 2023 09:02:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1687338171; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=A3RZN8kQ+/Yx1B55mFGjZC44ORt6IdbPrZmRaIaI0Xc=; b=s4Bd1MhQG8SiLr6xKjzSTJ9HRW3SHxvw+/vAGRENe3R7GwEt/6M/lGr90236wocA4sXkfH Uu6ZVuAFLKbmNLjUhGmpLx9qH8AS2afU8Vw93pRmTSTZe9/Uo958VLEthfFWaWkpD309Sq LKbFd4BZTMqFl7l9QMn4daL3YI3891c= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1687338171; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=A3RZN8kQ+/Yx1B55mFGjZC44ORt6IdbPrZmRaIaI0Xc=; b=m1n29lR4Ya5r5DqHiNEJM3r6v8V5a7gihEb26ocG8Kn0OCJNp+zIJpZ6J0JDRsLNVY3QQj tpTp0V8avCG+1bAw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id B877A134B1; Wed, 21 Jun 2023 09:02:51 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 5hetLLu8kmRQZAAAMHmgww (envelope-from ); Wed, 21 Jun 2023 09:02:51 +0000 Message-ID: <06c39b28-9605-524c-8a8e-c17e9b7458f6@suse.de> Date: Wed, 21 Jun 2023 11:02:51 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [RFC 1/4] fs: Allow fine-grained control of folio sizes Content-Language: en-US To: Pankaj Raghav , willy@infradead.org, david@fromorbit.com Cc: gost.dev@samsung.com, mcgrof@kernel.org, hch@lst.de, jwong@kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230621083823.1724337-1-p.raghav@samsung.com> <20230621083823.1724337-2-p.raghav@samsung.com> From: Hannes Reinecke In-Reply-To: <20230621083823.1724337-2-p.raghav@samsung.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/21/23 10:38, Pankaj Raghav wrote: > From: "Matthew Wilcox (Oracle)" > > Some filesystems want to be able to limit the maximum size of folios, > and some want to be able to ensure that folios are at least a certain > size. Add mapping_set_folio_orders() to allow this level of control > (although it is not yet honoured). > > [Pankaj]: added mapping_min_folio_order() > > Signed-off-by: Pankaj Raghav > Signed-off-by: Matthew Wilcox (Oracle) > --- > include/linux/pagemap.h | 46 +++++++++++++++++++++++++++++++++++++---- > 1 file changed, 42 insertions(+), 4 deletions(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes