Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp6167695rdb; Mon, 18 Sep 2023 06:16:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF1sE5dE6W5jVacyeBZr+BmstgAR6A2v6UpDg7YVuMIQ/RQBMW9yniorpQzysxMLHztRHaN X-Received: by 2002:a17:903:2783:b0:1b5:561a:5ca9 with SMTP id jw3-20020a170903278300b001b5561a5ca9mr7247475plb.50.1695042976201; Mon, 18 Sep 2023 06:16:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695042976; cv=none; d=google.com; s=arc-20160816; b=mEanDVfEzQJXqa0Lk13eLRDB7PVxHwUk1LG8s+F3tazKJa85t3Gyv1fLY3SyO6R9Gv 3YQFGzE6zarFi1hlwYTO1Ox/5YV3mmulA4hmEKXmx58TJAcZ+NEn36vGHl+t2RLECRAh mP00Yt84bTqoezsdbHzNmd0rtawRQ42UCmuKtttvQGMuswviB6Ooh2SaIhs5zEednVJz CeqSdzlX0itEf6UN/sc34ClxJviLegShyEmmAR5IpZ1xqb0xdhGjNW5S3NMNTnB0epx2 IDurp0igTfwc+iLrm0HD/7BL9OFRiHOtTEnUuZEt64HAJ862ivagQKYTGRaaBZJRHp7u FH7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:cms-type:mime-version :content-transfer-encoding:content-id:content-language :accept-language:in-reply-to:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature:dkim-filter; bh=ST7WfRxIJRj9DBrOFg+G9mJVDRWPXAjPfoEoFxX93/Q=; fh=e7xm66zOjCR/z2kgwS0WBNl6VrP39SE55EBDcUI7SHo=; b=Om13TstU1UHEVhE5PTRK97LcB0FdMJdd/BKsRPo9pwSdREdUp839W/VrQEKXjPNrBb gowUMeoc8pk8tvFmRUqwQ5wcTCC30VpBgjC/qjO3sWdyxvHHcyDSfzcUVsj9vEs+JT4t ToJ6FSq3mCc0IM3yGoFahYxdebz4UdhVXFhz9xlgDpXGZ2wJ8KsfAamcDinpPMJ+P+tO hk1alwFuETltkvPckfNGCY1SXkWBNuehM2jPm4BMZEEnVnhE+4lQ1cvqBG3jbLtvVTEb vQgFEUMrkNSdu5QGR1MTCLU4OjLe4gHpMJ5guWHgHhbhY4I2wMfWSzJcEK7bEikWf8ZM 8dqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=UIsoI9ys; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id o18-20020a170902e01200b001b9d2010c39si7969285plo.192.2023.09.18.06.16.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 06:16:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=UIsoI9ys; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 0C0DF8095DF5; Mon, 18 Sep 2023 01:02:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240512AbjIRICO (ORCPT + 99 others); Mon, 18 Sep 2023 04:02:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240467AbjIRIBo (ORCPT ); Mon, 18 Sep 2023 04:01:44 -0400 Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2F0D1B5 for ; Mon, 18 Sep 2023 01:00:16 -0700 (PDT) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20230918080015euoutp01c11a918fad5316d6347009e717d921e4~F71xtyhfy1689516895euoutp01O for ; Mon, 18 Sep 2023 08:00:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20230918080015euoutp01c11a918fad5316d6347009e717d921e4~F71xtyhfy1689516895euoutp01O DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1695024015; bh=ST7WfRxIJRj9DBrOFg+G9mJVDRWPXAjPfoEoFxX93/Q=; h=From:To:CC:Subject:Date:In-Reply-To:References:From; b=UIsoI9ysNX/MTGxLeJ0MHNeBYbm1Tsayazxc470TbDjEWceR5P5i5LwWuiiHHmKHo aVAbDztVR35F966FfPrsOi/TmYHIcOXAWO0BxVW6fB7NZMzSTMic83iIiSfsanp95X 1cSdXXkIGhI2yvpbwbA+vRu0NYKPmiwr+J/1d+Fs= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20230918080013eucas1p10b3b7fb702ca09bfd1b6156d8dcd0c0b~F71wuVorQ2746627466eucas1p1z; Mon, 18 Sep 2023 08:00:13 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 0B.C7.37758.D8308056; Mon, 18 Sep 2023 09:00:13 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20230918080013eucas1p22a216a10e484b35cf3a9a08a2184907c~F71wRjBVq2676826768eucas1p2K; Mon, 18 Sep 2023 08:00:13 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20230918080013eusmtrp26948539755a9dc02b75c39dd4042fdd9~F71wQImsk1585615856eusmtrp2n; Mon, 18 Sep 2023 08:00:13 +0000 (GMT) X-AuditID: cbfec7f5-815ff7000002937e-1b-6508038d95a8 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id D2.BD.14344.D8308056; Mon, 18 Sep 2023 09:00:13 +0100 (BST) Received: from CAMSVWEXC01.scsc.local (unknown [106.1.227.71]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20230918080013eusmtip2d26e89ae27c0e0f3e00c1342d0d922ea~F71wBjwws0119701197eusmtip2G; Mon, 18 Sep 2023 08:00:13 +0000 (GMT) Received: from CAMSVWEXC02.scsc.local (2002:6a01:e348::6a01:e348) by CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 18 Sep 2023 09:00:12 +0100 Received: from CAMSVWEXC02.scsc.local ([::1]) by CAMSVWEXC02.scsc.local ([fe80::3c08:6c51:fa0a:6384%13]) with mapi id 15.00.1497.012; Mon, 18 Sep 2023 09:00:12 +0100 From: Daniel Gomez To: Yosry Ahmed CC: "minchan@kernel.org" , "senozhatsky@chromium.org" , "axboe@kernel.dk" , "djwong@kernel.org" , "willy@infradead.org" , "hughd@google.com" , "akpm@linux-foundation.org" , "mcgrof@kernel.org" , "linux-kernel@vger.kernel.org" , "linux-block@vger.kernel.org" , "linux-xfs@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , "linux-mm@kvack.org" , "gost.dev@samsung.com" , Pankaj Raghav Subject: Re: [PATCH 6/6] shmem: add large folios support to the write path Thread-Topic: [PATCH 6/6] shmem: add large folios support to the write path Thread-Index: AQHZ57o0gOj42/h7V0WVSDdaHJaWqLAcJBuAgAQHWgA= Date: Mon, 18 Sep 2023 08:00:12 +0000 Message-ID: <20230918075758.vlufrhq22es2dhuu@sarkhan> In-Reply-To: Accept-Language: en-US, en-GB Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [106.110.32.103] Content-Type: text/plain; charset="utf-8" Content-ID: <9701CA5454931F4A96B7D3DA91723B0D@scsc.local> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrOKsWRmVeSWpSXmKPExsWy7djP87q9zBypBq2PzSzmrF/DZrH6bj+b xeUnfBZPP/WxWOy9pW2xZ+9JFovLu+awWdxb85/VYtefHewWNyY8ZbRY9vU9u8XujYvYLH7/ AMpu3xXpwOcxu+Eii8eCTaUem1doeVw+W+qxaVUnm8emT5PYPU7M+M3i8XmTXABHFJdNSmpO Zllqkb5dAlfGr5UH2Aue6FbM7W1maWA8o9PFyMkhIWAi8fTVD+YuRi4OIYEVjBJvmteyQzhf GCX6Wv+yQTifGSU+PpsJ5HCAtRw7bQ4RX84oMW/eWhaQUWBFP1cqQSTOMEr86Z3DCuGsZJR4 0LoZrIpNQFNi38lN7CC2iIC6xNw1mxhBbGaBL6wSXzcEgdjCAl4S6+fcYYao8ZZ4sXMJG4Rt JXF3/QMwm0VAVWLtzq9gM3kFTCXWf7jDCmJzCgRK7N5zCCzOKCAr8WjlL3aI+eISt57MZ4J4 WlBi0ew9zBC2mMS/XQ/ZIGwdibPXnzBC2AYSW5fuY4GwlST+dCxkBPmeGej+9bv0IUZaSrxt 2Qs1XlFiSvdDdohzBCVOznzCAvK7hMBMLoneZQuh5rtIXOw7DDVTWOLV8S3sExh1ZiE5bxbC illIVsxCsmIWkhULGFlXMYqnlhbnpqcWG+ellusVJ+Y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ajsTZ608Y IWwDia1L97FA2EoSfzoWMoKCiBnol/W79CFGWkq8bdkLNV5RYkr3Q3aI0wQlTs58wjKBUWYW ks2zELpnIemehaR7FpLuBYysqxhFUkuLc9Nzi430ihNzi0vz0vWS83M3MQJT2rZjP7fsYFz5 6qPeIUYmDsZDjBIczEoivDMN2VKFeFMSK6tSi/Lji0pzUosPMZoCQ24is5Rocj4wqeaVxBua GZgamphZGphamhkrifN6FnQkCgmkJ5akZqemFqQWwfQxcXBKNTDpa3c0K0y17BMO/+4tffrc ZIPi6e0q+ddnK026wt8lOfnpz16/L2Gb+dsKnd6L7zLNDCw94DG3tWG63qsAhnrt0l35l2yP 9Zuas5v01jT0zsrdrpl3cMq+bI/0B8bampu47e6cFPCLfu9ULuPKUbuo+lDOabHC9v9pp5nm 5unlfTm+rGDJWoZTM3teT3Lpu9U11WDV187Vh/fW/wvLPX055FhHTv30w9K++5Sn8yp0Fl7P Etqs2p3l0vL7caOa48uQPYfV3wVmXLpsH+j99v6vo3LZ98w//WtgMd1/TfG3KJdG47bqm+o7 59nWlzGJ7PQ+MuF/YFut9eanG1VWlB+K/iS360nk3b8/OLp8zyqxFGckGmoxFxUnAgBkVr0H 8gMAAA== X-CMS-MailID: 20230918080013eucas1p22a216a10e484b35cf3a9a08a2184907c X-Msg-Generator: CA X-RootMTR: 20230915095133eucas1p267bade2888b7fcd2e1ea8e13e21c495f X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20230915095133eucas1p267bade2888b7fcd2e1ea8e13e21c495f References: <20230915095042.1320180-1-da.gomez@samsung.com> <20230915095042.1320180-7-da.gomez@samsung.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Mon, 18 Sep 2023 01:02:48 -0700 (PDT) T24gRnJpLCBTZXAgMTUsIDIwMjMgYXQgMTE6MjY6MzdBTSAtMDcwMCwgWW9zcnkgQWhtZWQgd3Jv dGU6DQo+IE9uIEZyaSwgU2VwIDE1LCAyMDIzIGF0IDI6NTHigK9BTSBEYW5pZWwgR29tZXogPGRh LmdvbWV6QHNhbXN1bmcuY29tPiB3cm90ZToNCj4gPg0KPiA+IEFkZCBsYXJnZSBmb2xpbyBzdXBw b3J0IGZvciBzaG1lbSB3cml0ZSBwYXRoIG1hdGNoaW5nIHRoZSBzYW1lIGhpZ2gNCj4gPiBvcmRl ciBwcmVmZXJlbmNlIG1lY2hhbmlzbSB1c2VkIGZvciBpb21hcCBidWZmZXJlZCBJTyBwYXRoIGFz IHVzZWQgaW4NCj4gPiBfX2ZpbGVtYXBfZ2V0X2ZvbGlvKCkuDQo+ID4NCj4gPiBVc2UgdGhlIF9f Zm9saW9fZ2V0X21heF9vcmRlciB0byBnZXQgYSBoaW50IGZvciB0aGUgb3JkZXIgb2YgdGhlIGZv bGlvDQo+ID4gYmFzZWQgb24gZmlsZSBzaXplIHdoaWNoIHRha2VzIGNhcmUgb2YgdGhlIG1hcHBp bmcgcmVxdWlyZW1lbnRzLg0KPiA+DQo+ID4gU3dhcCBkb2VzIG5vdCBzdXBwb3J0IGhpZ2ggb3Jk ZXIgZm9saW9zIGZvciBub3csIHNvIG1ha2UgaXQgb3JkZXIgMCBpbg0KPiA+IGNhc2Ugc3dhcCBp cyBlbmFibGVkLg0KPg0KPiBJIGRpZG4ndCB0YWtlIGEgY2xvc2UgbG9vayBhdCB0aGUgc2VyaWVz LCBidXQgSSBhbSBub3Qgc3VyZSBJDQo+IHVuZGVyc3RhbmQgdGhlIHJhdGlvbmFsZSBoZXJl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yA6IDApKQ0KPiA+ICAgICAgICAgICAgICAgICBnb3RvIGFsbG9jX25vaHVn ZTsNCj4gPiBAQCAtMjAzOSwxMSArMjA0NywxMSBAQCBzdGF0aWMgaW50IHNobWVtX2dldF9mb2xp b19nZnAoc3RydWN0IGlub2RlICppbm9kZSwgcGdvZmZfdCBpbmRleCwNCj4gPiAgICAgICAgIGh1 Z2VfZ2ZwID0gdm1hX3RocF9nZnBfbWFzayh2bWEpOw0KPiA+ICAgICAgICAgaHVnZV9nZnAgPSBs aW1pdF9nZnBfbWFzayhodWdlX2dmcCwgZ2ZwKTsNCj4gPiAgICAgICAgIGZvbGlvID0gc2htZW1f YWxsb2NfYW5kX2FjY3RfZm9saW8oaHVnZV9nZnAsIGlub2RlLCBpbmRleCwgdHJ1ZSwNCj4gPiAt ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJm9yZGVyKTsNCj4gPiAr ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJm9yZGVyLCBzYmluZm8p Ow0KPiA+ICAgICAgICAgaWYgKElTX0VSUihmb2xpbykpIHsNCj4gPiAgYWxsb2Nfbm9odWdlOg0K PiA+ICAgICAgICAgICAgICAgICBmb2xpbyA9IHNobWVtX2FsbG9jX2FuZF9hY2N0X2ZvbGlvKGdm cCwgaW5vZGUsIGluZGV4LCBmYWxzZSwNCj4gPiAtICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAmb3JkZXIpOw0KPiA+ICsgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICZvcmRlciwgc2JpbmZvKTsNCj4gPiAgICAg ICAgIH0NCj4gPiAgICAgICAgIGlmIChJU19FUlIoZm9saW8pKSB7DQo+ID4gICAgICAgICAgICAg ICAgIGludCByZXRyeSA9IDU7DQo+ID4gQEAgLTIxNDcsNiArMjE1NSw4IEBAIHN0YXRpYyBpbnQg c2htZW1fZ2V0X2ZvbGlvX2dmcChzdHJ1Y3QgaW5vZGUgKmlub2RlLCBwZ29mZl90IGluZGV4LA0K PiA+ICAgICAgICAgaWYgKGZvbGlvX3Rlc3RfbGFyZ2UoZm9saW8pKSB7DQo+ID4gICAgICAgICAg ICAgICAgIGZvbGlvX3VubG9jayhmb2xpbyk7DQo+ID4gICAgICAgICAgICAgICAgIGZvbGlvX3B1 dChmb2xpbyk7DQo+ID4gKyAgICAgICAgICAgICAgIGlmIChvcmRlciA+IDApDQo+ID4gKyAgICAg ICAgICAgICAgICAgICAgICAgb3JkZXItLTsNCj4gPiAgICAgICAgICAgICAgICAgZ290byBhbGxv Y19ub2h1Z2U7DQo+ID4gICAgICAgICB9DQo+ID4gIHVubG9jazoNCj4gPiAtLQ0KPiA+IDIuMzku Mg0KPiA+