Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp6485361rwp; Tue, 18 Jul 2023 00:42:14 -0700 (PDT) X-Google-Smtp-Source: APBJJlFEpB5PVKGYbE6QiG6jnXMciKYAXSWF8xZqhyLlBz6vJ6JNhAwu/YdNeKGBgGKff/WYY8nR X-Received: by 2002:a05:6a21:99a6:b0:125:4d74:cd6a with SMTP id ve38-20020a056a2199a600b001254d74cd6amr14883347pzb.3.1689666133920; Tue, 18 Jul 2023 00:42:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689666133; cv=none; d=google.com; s=arc-20160816; b=wI3NffXlu0Jt92WIve2OZ1HeiqN/PytTI2pmt5iff4teEP3MxodOcxMemc5L+U9J6s bPjJC+ikKi9HnciIR35PCgVaqcrGWvQ5jHPSyhkW8J2aCaYoNFEfOiSc4+jYOcI0t0ed QAhyZCiZD3BQtd6S0yg2sXSwXvjfRksorWeb0ohv/hbHGp9wTX8uyBhHktr8gzGpXruC ML69oimsAHXGvnVLi7J7yLlmdkjBKT0JRALiTrmYtqsVixi3ry6QV3bIxzyenwh2I7I2 R9BZRVzCKD7ce6ffCftRWWD/alCTZm3keMCA1uyQ9gRiJSLiXvAPNjAEBCrCqXM9CbxN q6Bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=wv9VwJ8D39CulhEC4fsEJbu/1fRx3m2Hr6uWnLN8+sE=; fh=3xzi+BqZKTBk5MkTiR3QT2Acm3hto8LBzlKFP1afWsA=; b=AZESxDA74n7LH736vcB7Z3aQoZ9OtmYWug9TJFSGf7KMc67ESrxgy7c+fJcEM8q64L d9wNsxqFQcbnSjeKxg9JqQCd3y2ikjQ8dNRd6omytnNYbFJeUv1SNq0rDlQRlvjeZv8e WoM69T1JfPyMCUYgP2P4jlQbY2SFOcPdcRSYRK9YtCU+lUYYyjTts+XdOymOQ2bJnSw4 q0hqQKkeB6TWQzvtPigAsSxyHI8YC45DWwnAyE1SlpQMYl4lGDUkDcBNNhm7QXQa320x s/3nd+QnUbgWKjUmsui4rYzk3BCwnjKcaDJxhwasikt16mItAc4wF/0gNy6tyljFZXg/ gZUg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v24-20020a63f218000000b0055b037b55ecsi1188855pgh.147.2023.07.18.00.42.01; Tue, 18 Jul 2023 00:42:13 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231517AbjGRHO3 (ORCPT + 99 others); Tue, 18 Jul 2023 03:14:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230189AbjGRHO2 (ORCPT ); Tue, 18 Jul 2023 03:14:28 -0400 Received: from dggsgout11.his.huawei.com (unknown [45.249.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A44310B for ; Tue, 18 Jul 2023 00:14:27 -0700 (PDT) Received: from mail02.huawei.com (unknown [172.30.67.143]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4R4qX03Ftzz4f3rjL for ; Tue, 18 Jul 2023 14:57:36 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.124.27]) by APP2 (Coremail) with SMTP id Syh0CgB3a+nfN7Zk36ikOA--.34217S2; Tue, 18 Jul 2023 14:57:37 +0800 (CST) From: Kemeng Shi To: akpm@linux-foundation.org, pasha.tatashin@soleen.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: shikemeng@huaweicloud.com Subject: [PATCH 0/3] add page_ext_data to get client data in page_ext Date: Tue, 18 Jul 2023 22:58:09 +0800 Message-Id: <20230718145812.1991717-1-shikemeng@huaweicloud.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: Syh0CgB3a+nfN7Zk36ikOA--.34217S2 X-Coremail-Antispam: 1UD129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUY27AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E 6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l87I20VAvwVAaII0Ic2I_JF v_Gryl8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AK xVWDJVCq3wA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aV AFwI0_GcCE3s1l84ACjcxK6I8E87Iv6xkF7I0E14v26rxl6s0DM2AIxVAIcxkEcVAq07x2 0xvEncxIr21l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1j6r18Mc Ij6I8E87Iv67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41l F7I21c0EjII2zVCS5cI20VAGYxC7MxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r 1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CE b7AF67AKxVWUAVWUtwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF0x vE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwCI42IY6xAIw20EY4v20xvaj40_WFyUJVCq3wCI 42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r1j6r4UYxBIdaVFxh VjvjDU0xZFpf9x0pRVc_3UUUUU= X-CM-SenderInfo: 5vklyvpphqwq5kxd4v5lfo033gof0z/ X-CFilter-Loop: Reflected X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_00,DATE_IN_FUTURE_06_12, MAY_BE_FORGED,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE, 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 Current client get data from page_ext by adding offset which is auto generated in page_ext core and expose the data layout design insdie page_ext core. This series adds a page_ext_data to hide offset from client. Thanks! Kemeng Shi (3): mm/page_ext: add common function to get client data from page_ext mm/page_ext: use page_ext_data helper in page_table_check mm/page_ext: use page_ext_data helper in page_owner include/linux/page_ext.h | 6 ++++++ mm/page_owner.c | 2 +- mm/page_table_check.c | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) -- 2.30.0