Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp7732972ioo; Fri, 3 Jun 2022 12:17:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6ET3eGEmLBSuOqf6j/39JeLHz/4fTGgCHoNqUAXdgXKaxMd6f9HHfTeNYe9JEU5vwr4BK X-Received: by 2002:a17:90a:6390:b0:1e0:a47b:a57a with SMTP id f16-20020a17090a639000b001e0a47ba57amr46726523pjj.115.1654283825902; Fri, 03 Jun 2022 12:17:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654283825; cv=none; d=google.com; s=arc-20160816; b=ScDwScDLWSNKuhzBNijRwSQb+bqxZ5xubW/F0GJNBbzLU7ET8Ehqm2jme6jYji/CX9 A9K8af7Uvesir+6caFRskGDVN6t/255+N15EplCevAqWaA0w6askTpZ9ZeNYRZne2vZ+ T6OySIlDNhxDtXk353UoqGhq2HEepWMzAOf/5NTIlSScLU59vM842ZO1mqOgIkFjotze zMdvN46tSkyC2pCMyjOpawnNI58OS9n1R4zU3cUgpmf/mJP57YkEcWslVDJ6TqgHFKgH r2xgyB9LjH5LVFNEQtNmchQqOVlg2Ml13NNwi0+mBD3KwLkQSvrM0gVycoBBKR0d/Otb XNMw== 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:dkim-signature; bh=zCSSFQ2L4JXpdmXrE1zZ/i+Swl9oJ6KcROQdZ1N3Ha8=; b=RxC/gqOUQmyn799hptxPHXnL4t5k1NGsfJLVHJ8GDlq5UlKElfjNJqyIRDWV9IVxMX msKXvClMjWSFEuPe8TQEK5MSXi7dBwTiw5eSMri3WlhnW0+cgGh6nbDdHI5uocyrcXon XUwdse0ByM5cY9PkO+AEQfKqHS+C851LXpfppF4yjFxo1tlhpt0rVo5G6odZ4nuTeHbU nqAiO3So5ZbyeZ3nIOMPzLlyi0cGIfNIrHQ7tu6EwVrYXTR9FAhSlCurL2cq+HXet8io hEg5/tRP7EgG67Z4ZgBfBdwP2E9nXJ7J1Nw2aEQb7vqKWQTM6anYYYCnJHMIWRyBnjrF LUww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ITZNq6NL; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h24-20020a17090acf1800b001d26ee86442si10032940pju.93.2022.06.03.12.16.45; Fri, 03 Jun 2022 12:17:05 -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=@gmail.com header.s=20210112 header.b=ITZNq6NL; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236281AbiFBO4h (ORCPT + 99 others); Thu, 2 Jun 2022 10:56:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236275AbiFBO43 (ORCPT ); Thu, 2 Jun 2022 10:56:29 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82DF32AD5F2 for ; Thu, 2 Jun 2022 07:56:25 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id s12so3261746ejx.3 for ; Thu, 02 Jun 2022 07:56:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=zCSSFQ2L4JXpdmXrE1zZ/i+Swl9oJ6KcROQdZ1N3Ha8=; b=ITZNq6NL54WMwUJGlIfxvdXqqOqhvvCVLdmzhwDzjVYtZoXqK/cElJsPRARmEaVe3x n+jVzu4v3nvlV2c7IJFSYkm5LXlZzZH2ujl0FiOQ9Z9rnMLleRRdaFJDfwhCfmx/Zv8L XNqtFYriy+qTO3tQmgY6aqVsGhqB7Hrww9Ypy9DFg/vMxYzcXYOaSe7BcTjQbClI9Syl 2ysK/PXoPGwVP3Ns8dIW9wZRm500ED6Jr57O8MBF/3Yzl0wY+xHa79x1ja1/6hBc8XCQ BFQLCWqTG0ijre9u3cVf0qTPjjUX9qpH/zObaEgGaXgO+sMB0rMDymdaGebAESww0kax YqHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=zCSSFQ2L4JXpdmXrE1zZ/i+Swl9oJ6KcROQdZ1N3Ha8=; b=fKE3u8/6r7mgfL3kbrt4vcR8AlENqvQ4OBVH/FBV8CvEpW2JttGSeqDELBHmBuoXhs xXGCTfEwaD7mv3Y2PO2R6xAVCk/n4NLpGx7cRMNXMJCvlL13attMApXQVzvAMpaKtXrJ OkgMaHX6hUB+9U7BjddogQH0UHSKNU9blFSooj6N2f1ozi+M746kwPWSLIhHRHmvyMl1 QzNWE1rr5nC8kBLI2qk7IYUpOmdR4PMVeVS9ZNblW4MFVfbQHipiOu00tlqZZX+zk3vs 3+7gPJYklL5Tgqq2VvJwM58qOc5Z/atcGWDpjm5QiVQM2zA965DoPTBWU6sPA8DZV/zC C4Og== X-Gm-Message-State: AOAM530BetAcdeiudihbzcWPrKjZiwAUlehGHRlOxhYZU9alXXmYBbjZ FsuRxcizD5vK5v+0lga4bJ4= X-Received: by 2002:a17:907:6d1f:b0:6fe:e53b:7f53 with SMTP id sa31-20020a1709076d1f00b006fee53b7f53mr4659077ejc.375.1654181783946; Thu, 02 Jun 2022 07:56:23 -0700 (PDT) Received: from orion.localdomain ([93.99.228.15]) by smtp.gmail.com with ESMTPSA id wj17-20020a170907051100b006fed9a0eb17sm1800254ejb.187.2022.06.02.07.56.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jun 2022 07:56:23 -0700 (PDT) Received: by orion.localdomain (Postfix, from userid 1003) id 2879BA0884; Thu, 2 Jun 2022 16:56:57 +0200 (CEST) From: =?UTF-8?q?Jakub=20Mat=C4=9Bna?= To: akpm@linux-foundation.org Cc: linux-mm@kvack.org, patches@lists.linux.dev, linux-kernel@vger.kernel.org, vbabka@suse.cz, mhocko@kernel.org, mgorman@techsingularity.net, willy@infradead.org, liam.howlett@oracle.com, hughd@google.com, kirill@shutemov.name, riel@surriel.com, rostedt@goodmis.org, peterz@infradead.org, =?UTF-8?q?Jakub=20Mat=C4=9Bna?= Subject: [PATCH v2 0/2] Refactor of vma_merge and new merge call Date: Thu, 2 Jun 2022 16:56:40 +0200 Message-Id: <20220602145642.16948-1-matenajakub@gmail.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 I am currently working on my master's thesis trying to increase number of merges of VMAs currently failing because of page offset incompatibility and difference in their anon_vmas. The following refactor and added merge call included in this series is just two smaller upgrades I created along the way. The rest of the work is still being worked on but was send to mailing list as a RFC: https://lore.kernel.org/all/20220516125405.1675-1-matenajakub@gmail.com/ This patch series is based on tag v5.18. This is third version, I added a mremap expand merge test, added a comment and new variables to the merge call and based the series on a newer kernel version. Jakub Matěna (2): mm: refactor of vma_merge() mm: add merging after mremap resize mm/mmap.c | 87 +++++++++++++++++++++++------------------------------ mm/mremap.c | 8 +++-- 2 files changed, 43 insertions(+), 52 deletions(-) -- 2.35.1