Received: by 2002:a05:7208:13ce:b0:7f:395a:35b6 with SMTP id r14csp369207rbe; Thu, 29 Feb 2024 01:50:18 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXr2tap3KfO7zcX45Zxpd7ZxqOCwy5CHNCYf1+TvZMKdnx2plqy2P6XLctUQZqeV5wMUf3a/Az+TVPRAh7KsMFGpnZgQq4xrRUQ9hnRSA== X-Google-Smtp-Source: AGHT+IGEbFNKX9m5OX27NbzemkKcDl9HYF2U9rJEYSx1H9yc1dVgOEO+oiNw0lr7wo0rw0+l5noW X-Received: by 2002:a17:902:d2c6:b0:1db:ccd7:5249 with SMTP id n6-20020a170902d2c600b001dbccd75249mr1949131plc.34.1709200218491; Thu, 29 Feb 2024 01:50:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709200218; cv=pass; d=google.com; s=arc-20160816; b=cvdOZ+RnIldmXva9xJhT2Zu79rpu3yyxkmUNoTFDC+hbL9Gy3J/Jv/Wv8jxLpSFqqn UuekDa9g4UOzxK/sQ5VywoIqo/cmtoOuANS27TX43oizSDPQr5ZNj1Dbgfqu2LyxCS49 kvUm3AbdwuMHzzuwXNLZjmk9j9SmM//il2gSPIATS63zMFkFFSJCj3Lu1Fa8gdK6N5jv suwBX423v7dUrDDD+EvjVCwf+GbQmtw7CjfA6EcGSESTNnSfRNboyDxnwOpDQ1OV99X5 mIyqhZFwZDAhPHmPKHLINTF/Y5QWo34TOFURkdA4BSm9cokfwS/PBDL4pfQptzhm16Z2 oc2Q== 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=L3rbyqVBPDOPP9EM6vMSpLtzZtbMxF8srL9v40G0eMw=; fh=/b6YGcPejWDNezti1EBZvRP+LSZiTVKUOaRgS5FhYnQ=; b=NduAX9Rkob3hni9FwG//E+8w8qSBStu6bjLFQ3gMhMmdIRxZseHX0fte21tEHfjt2r +PNP2hjGYOQhpcRe8qoIVwOUoDWXBlfiH6oUL8yt8GhmbUcBeNAREC/O1ds/mMCW+eDV CW2XnsMa2H6Mnt5/AVINRBahaPGrs6L+O7K9fh78V17qqTv0cBvt4y/XrUKGX7FH7xPS TZKN2hNp8c4vpqsYUy8C9rlmQWYVITEmqqe5P0a34FWa/et4pnjQb2D5MsG7Jc3Qwig2 N9Z07sDzITBhCdOcjjspPM7qvx+3+leeB4eewEj8VBffkWxOTlS0fW9U9cKMCDelYmXY dR7w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@pankajraghav.com header.s=MBO0001 header.b="Bp8e/1d+"; arc=pass (i=1 spf=pass spfdomain=pankajraghav.com dkim=pass dkdomain=pankajraghav.com); spf=pass (google.com: domain of linux-kernel+bounces-83683-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83683-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id s5-20020a17090302c500b001db9170927bsi993089plk.296.2024.02.29.01.50.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 01:50:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83683-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@pankajraghav.com header.s=MBO0001 header.b="Bp8e/1d+"; arc=pass (i=1 spf=pass spfdomain=pankajraghav.com dkim=pass dkdomain=pankajraghav.com); spf=pass (google.com: domain of linux-kernel+bounces-83683-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83683-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 64D5B2900EB for ; Tue, 27 Feb 2024 17:10:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1156E4F1E6; Tue, 27 Feb 2024 17:10:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pankajraghav.com header.i=@pankajraghav.com header.b="Bp8e/1d+" Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [80.241.56.172]) (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 9B5A94EB21; Tue, 27 Feb 2024 17:10:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.241.56.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709053810; cv=none; b=p+g8QwHXmJW0bqHUpUKTR7pVKjPHnMS/KYqsJG7B8KtujZ/wXGDKfRNQK3OJOcBmNpaR5N6jpc/KEHu6gvatO7Abk8o4+waXENFTrWbPNjt1IcJT42gAxmbpXbzwSPvi+Qi34J1aduwtUeDQKe3EogXe/VM/UvlZg1Zm/2ZDqVc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709053810; c=relaxed/simple; bh=gyuDS9EtEKaZucQGaEB4KRJYUmQ89m4Q+KTR4RAwEKU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=t6BTxxmsK3KUGg2PIBjIE55lgm4jDpGLfNtJ7IqS8dXigWUIPdfKwWtKf8m7vXnowD3V+TtmEuK2JVig6f71AO4vHTVkWvysqSAEEG4xevAfqk+wlXR+qLsIqi8fhc0oGr2lTZoPnZz1mhaoz0ONpkiV22r5vY/cqJEWqkFdiNg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pankajraghav.com; spf=pass smtp.mailfrom=pankajraghav.com; dkim=pass (2048-bit key) header.d=pankajraghav.com header.i=@pankajraghav.com header.b=Bp8e/1d+; arc=none smtp.client-ip=80.241.56.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pankajraghav.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pankajraghav.com Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4TkkWF4lXLz9stn; Tue, 27 Feb 2024 18:10:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pankajraghav.com; s=MBO0001; t=1709053801; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=L3rbyqVBPDOPP9EM6vMSpLtzZtbMxF8srL9v40G0eMw=; b=Bp8e/1d+0s6eBqZSdp+nDUYyWX1I3kndK4tVYRukCkdA303SiPrLBul3QkDt5kyngCAxCH CclK+qmQimTSdZ37SJNF9ZyYlxC93pioBZL4JBPcXSnaSjNn4wsAlRppgX5jrhwJxVS9NX rk+zeg2BZoiI5WjnQfuFp9jTA9Fdr8Fuk9FkmCwPZzIFW+auxXD6VRyLQMgnSl02jeT8oe LaWL0DWKVVRHCLtwmfY2MAoo0lGBlMy6M774uvUCrgTYrqzgVjPMSNZ53L/bAQIBVmkAem RnWbBaahhuYcPF6ChRUiqlfzXlCRTxqpmuqKCms8KauMe4oQE/CatYUOSDAc9Q== Date: Tue, 27 Feb 2024 18:09:57 +0100 From: "Pankaj Raghav (Samsung)" To: Kent Overstreet Cc: Matthew Wilcox , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, david@fromorbit.com, chandan.babu@oracle.com, akpm@linux-foundation.org, mcgrof@kernel.org, ziy@nvidia.com, hare@suse.de, djwong@kernel.org, gost.dev@samsung.com, linux-mm@kvack.org, Pankaj Raghav Subject: Re: [PATCH 03/13] filemap: align the index to mapping_min_order in the page cache Message-ID: References: <20240226094936.2677493-1-kernel@pankajraghav.com> <20240226094936.2677493-4-kernel@pankajraghav.com> <37kubwweih4zwvxzvjbhnhxunrafawdqaqggzcw6xayd6vtrfl@dllnk6n53akf> <4zpsfvy3e4hkc4avvjjr34rgo7ggpd6hpflptmiauvxwm3dpvk@5wulihwpwbyp> 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-Rspamd-Queue-Id: 4TkkWF4lXLz9stn > > > > I have one question while I have you here. > > > > When we have this support in the page cache, do you think bcachefs can make > > use of this support to enable bs > ps in bcachefs as it already makes use > > of large folios? > > Yes, of course. > > > Do you think it is just a simple mapping_set_large_folios -> > > mapping_set_folio_min_order(.., block_size order) or it requires more > > effort? > > I think that's all that would be required. There's very little in the > way of references to PAGE_SIZE in bcachefs. Sweet. I will take a look at it once we get this upstream. -- Pankaj