Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp708096rwr; Thu, 20 Apr 2023 05:33:16 -0700 (PDT) X-Google-Smtp-Source: AKy350bmQQMSDrTprxkLaN1v44HZURd4H59UlwHelMDvFoAGLtUnkp3Uwx5TYkv8Uu9kfDfP82gy X-Received: by 2002:a17:902:c407:b0:1a2:56f4:d369 with SMTP id k7-20020a170902c40700b001a256f4d369mr1614939plk.19.1681993996029; Thu, 20 Apr 2023 05:33:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681993996; cv=none; d=google.com; s=arc-20160816; b=o0Op+ECXh8MQgxJeJI5mOkDcdxYOYNxFMCf0Vi9PX/axoeKJi0DcGgbz3/aW+FDXca Lct+Gpv4CqtNnH/a5Pe8RMSVAS62XaK5KbwPylgo3Jmb/WeAeBoHSU4tl3OJalpSkmdx Ewtc58URWQYQq2Zo9Q7PNe01P/JqU94qENT7CTNAHqwAsNEOe+mucxSM5xWh4oIIFAOb WIzz6QnA0Pv8rnuZquqikSWonQErd5dhzGFOCDIOPutjYIS09H4yKnP05iFFopbrQH6z o11oHKp3p6oBfQES7811nKF+C8AOXFPN0PnbF7Qf/ntEZGviscITx8nbSL+qd2vW70kQ Nkww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:cms-type:content-transfer-encoding :in-reply-to:from:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature:dkim-filter; bh=fWdLK1+pfwYP5I6D3pnWgyqrztBApQHaQBRzHhUipRQ=; b=VPJt+TILxfffBXY2TVAWnW3y8sn/uop8tj3JqTMXy2b/m1PKeRV/9fKOsYhueeYdwc Iz5eeEbcEha29DYTdqysdjnGFgIh8xsn3dD8ruzfuEganCbm1R8kI/N5ROS2lxA+dY96 RJl9KH08c8VJCALjQnM7hepg9cepGJmUQjJ5ec+7VLZZojsgNGP+Sp3QsqZ+bHXLM9zE w3XA3pT+ERz+B+8Y6FjRqAEhVO/sRW7ASmJmltQ1ETTfuOYdAIE0zbv7uC1ZBli7jpCi baewjWD7zxjCJmtPt16lawz/KOgEwfEfKD3rqq7ZMreR9isJgfdkSCuxsgyylwoTup8r b4ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=WmMY5j0t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w12-20020a170902e88c00b001a656596b9esi1774661plg.608.2023.04.20.05.32.58; Thu, 20 Apr 2023 05:33:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=WmMY5j0t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234241AbjDTM2n (ORCPT + 99 others); Thu, 20 Apr 2023 08:28:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229884AbjDTM2m (ORCPT ); Thu, 20 Apr 2023 08:28:42 -0400 Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A149526E for ; Thu, 20 Apr 2023 05:28:40 -0700 (PDT) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20230420122838euoutp0115d34dbc0b28ff56366b7c8124bfd980~XpGAnW5D72801128011euoutp01T for ; Thu, 20 Apr 2023 12:28:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20230420122838euoutp0115d34dbc0b28ff56366b7c8124bfd980~XpGAnW5D72801128011euoutp01T DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1681993718; bh=fWdLK1+pfwYP5I6D3pnWgyqrztBApQHaQBRzHhUipRQ=; h=Date:Subject:To:CC:From:In-Reply-To:References:From; b=WmMY5j0tfhZghQrIJE5Yxq+XRoy02Uuc9HJ9Dog+YE3pJnAVUQajGHo1YHOMfVmu+ tTf/2jYu3mgQ4cuYE8LXGdpu5OyYqLllca7/NH6QIVeSfgbRMejfYdQaayuVbY6WUM wHTTmP3W6WucAvx2F5M2dcNT1WwsuolO7RI8trbk= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20230420122838eucas1p2ed0bf58d169ddf6d3d0c55710266dd8d~XpGARjHOy0901509015eucas1p2_; Thu, 20 Apr 2023 12:28:38 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 5D.56.10014.6FF21446; Thu, 20 Apr 2023 13:28:38 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20230420122838eucas1p136006a7a08dd5a46ce85922642f9f87d~XpF-_svuh1029210292eucas1p1X; Thu, 20 Apr 2023 12:28:38 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20230420122838eusmtrp12f60cdf136dc7228e9d4aeb5bd62426c~XpF-_J7v13204632046eusmtrp1B; Thu, 20 Apr 2023 12:28:38 +0000 (GMT) X-AuditID: cbfec7f5-ba1ff7000000271e-8e-64412ff6136b Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 1C.35.34412.5FF21446; Thu, 20 Apr 2023 13:28:37 +0100 (BST) Received: from CAMSVWEXC02.scsc.local (unknown [106.1.227.72]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20230420122837eusmtip12e3a472e54303ebd13cb10b3242d8902~XpF-0eh1Y0953109531eusmtip1k; Thu, 20 Apr 2023 12:28:37 +0000 (GMT) Received: from [106.110.32.65] (106.110.32.65) by CAMSVWEXC02.scsc.local (2002:6a01:e348::6a01:e348) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 20 Apr 2023 13:28:37 +0100 Message-ID: <1c76a3fe-5b7a-6f22-78e1-da4a54497ecd@samsung.com> Date: Thu, 20 Apr 2023 14:28:36 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH] mm/filemap: allocate folios according to the blocksize Content-Language: en-US To: Hannes Reinecke CC: Matthew Wilcox , , , , SSDR Gost Dev From: Pankaj Raghav In-Reply-To: Content-Transfer-Encoding: 7bit X-Originating-IP: [106.110.32.65] X-ClientProxiedBy: CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) To CAMSVWEXC02.scsc.local (2002:6a01:e348::6a01:e348) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuphleLIzCtJLcpLzFFi42LZduznOd1v+o4pBg+vClrsWTSJyWLP3pMs Fpd3zWGzuDHhKaPF7x9z2BxYPTav0PLYtKqTzWPz6WqPz5vkAliiuGxSUnMyy1KL9O0SuDJ+ TfzPWnCYveLUtG3sDYwdbF2MnBwSAiYSD1fPB7K5OIQEVjBK7F05lRnC+cIocefYXyYI5zOj xK3OSUwwLesf3oVKLGeUWLT9Cwtc1cPXJ5hBqoQEdjJKvDyUAmLzCth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+8y9TFyMUhJLCUUWLtvJlQCRmJjV+uskLYwhJ/rnWxQRR9ZJTYff4wlLOTUaJ1 D0g7JwevgJ3ErCvz2UFsFgFVieYfD6DighInZz5hAbFFBaIlbiz/BhYXFvCWOLS/lxHEZhYQ l7j1ZD5YXERASeJj+yF2kAXMAisYJZ527AMbKiTwhlHi0PTqLkYODjYBLYnGTrAwp4C1RMel D+wQczQlWrf/hrLlJba/ncMM8YGixKSb76G+qZX4/PcZ4wRG0VlIzpuF5IxZSEbNQjJqASPL KkaR1NLi3PTcYiO94sTc4tK8dL3k/NxNjMDo3Hbs55YdjCtffdQ7xMjEwXiIUYKDWUmE94yr VYoQb0piZVVqUX58UWlOavEhRlNgGE1klhJNzgemh7ySeEMzA1NDEzNLA1NLM2MlcV7Pgo5E IYH0xJLU7NTUgtQimD4mDk6pBiY9hw3v84Ucl0+9bHRrzZYlTpz3/eYIiBQ3dc91OrJ7yZK0 P1aadX+WSKpZ2RYs/Lai77cbT65epMrtzU+LX7ZeqyrrydVzkvtztDn/Q9s2hXcndRVFmtXv OERs3+N/eVNgQUr+Yw2LGwd+ij+env5k5ukJzOn26bt57v5/6m0T5hE0XzTXbUnDWe/0TZfE mIx4874b5DF/vPMt54yar7imrHrl3aAbur3KM9NNV9aLfz6fwvdn/skZ685b6jyZ83xlOUPq ioDG38caIoqu614oX+jloZOV2bs0VOD2+Y5mB0/b1vIV62qnTNzoxvtRtY596THNbzeMtf72 H//wOu9YUsmuBS/r3v7+laJetlCJpTgj0VCLuag4EQCHO1YIVwMAAA== X-CMS-MailID: 20230420122838eucas1p136006a7a08dd5a46ce85922642f9f87d X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20230414134914eucas1p1f0b08409dce8bc946057d0a4fa7f1601 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20230414134914eucas1p1f0b08409dce8bc946057d0a4fa7f1601 References: <20230414134908.103932-1-hare@suse.de> <2466fa23-a817-1dee-b89f-fcbeaca94a9e@samsung.com> X-Spam-Status: No, score=-8.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023-04-20 14:19, Hannes Reinecke wrote: >> >> **Questions on the future work**: >> >> As willy pointed out, we have to do this `order = mapping->host->i_blkbits - PAGE_SHIFT` in >> many places. Should we pursue something that willy suggested: encapsulating order in the >> mapping->flags as a next step?[1] >> >> >> [1] https://lore.kernel.org/lkml/ZDty+PQfHkrGBojn@casper.infradead.org/ > > Well ... really, not sure. > Yes, continue updating buffer_heads would be a logical thing as it could be done incrementally. > > But really, the end-goal should be to move away from buffer_heads for fs and mm usage. So I wonder > if we shouldn't rather look in that direction.. > Yeah, I understand that part. Hopefully, this will be discussed as a part of LSFMM. But the changes that are done in filemap and readahead needs to be done anyway irrespective of the underlying aops right? Or Am I missing something. > Cheers, > > Hannes >