Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2408860ioo; Sat, 28 May 2022 12:41:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/S4EI6DZSHOYppnWar4BAreDQwdNRzfuABkx2zDD5EvMDZQUHRgKQyOgIvE4B7ljJ1thC X-Received: by 2002:a17:902:b418:b0:15f:713:c914 with SMTP id x24-20020a170902b41800b0015f0713c914mr49243723plr.171.1653766892174; Sat, 28 May 2022 12:41:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653766892; cv=none; d=google.com; s=arc-20160816; b=U0lkqjts+8OLA/SCTltcS9UIfzd/ClaqUB/qxOWR4hVwQLQ60NwYzc4fYbA2p3Uqoy nbX+c1WpBbazLv4+8taHraniZvUgk0YCoHP5/qaSqvtBhobYTr65dNin2pmK6lghhj7L wE6xt0/8Jm4LPbhdQyRDOjwGgx5cZRa6XLRskr0GrYqrpBslxERQiLogQoViuz3NEiq9 q67z3bYn0vCG3EC2kek3oVgqJlrQQ+F7+eos5guCgXgwIXHilz1ir4xmkDWSzGjf56HU FZP66pEbY4t24O+yaUYnN7CLiRszdygZIrlauCIArOOqkwE2qaxQ24EwsJkGbr2SD8wR +sMg== 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=zWvlDm9hhFZkrdkaC2XFt8A0sbOQiaJ6DORh+Lhw6t4=; b=z7OvFjxIi+c1ml1NPECEiRS2qQt6yFkOtHhjiQgZGuq91p+C//i1x3aZB4urNic9Tg X5vPiq3yUOXs6krKzYrDe9XIpYZGVbYJ7UuT6AOMBCqqSHCieCA1HqZBTpwPPBobvkre U1IcqayIsmtof288jLx/6K67jvmnxtXcaNWt5SxzLG1XUzwMPYG3xfbG9/FjK9P6ecxM 684BFJghIP5nhswndxkP2ipp8ZdSUIGFpqeBUeexyOsaaLsefLFBB1p3C+pTAO6/hi/i Jtd00eyL4oMKhjixrMYecHE5S/gpqM+DRwDbiwFZErpfts/SJLSNzRVfbNQrJSHNw9Or OymQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=KLVb2+ZQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id z8-20020a170903018800b00162147a84dcsi11783835plg.257.2022.05.28.12.41.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 12:41:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=KLVb2+ZQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 196A360B83; Sat, 28 May 2022 12:05:50 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354713AbiE0VQp (ORCPT + 99 others); Fri, 27 May 2022 17:16:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243869AbiE0VQn (ORCPT ); Fri, 27 May 2022 17:16:43 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A625AE0E4 for ; Fri, 27 May 2022 14:16:42 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id n22so3894116eda.5 for ; Fri, 27 May 2022 14:16:42 -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=zWvlDm9hhFZkrdkaC2XFt8A0sbOQiaJ6DORh+Lhw6t4=; b=KLVb2+ZQN7uzvUyG53PLJ4bW9v/lK1hnNTEPLTSnKJMx1XDAMsoG0gSCiA5/EK6W9g eJhz2DcTPyc8DQxcwPtTwMM1+LB2IpnoMiivvViaP9prQ4XJppRIPWadklHfLOmsJ89R kB4Owxt2t9GWzcDKbnHacxYwvdww97EIIZPyR8uqjaAQ8ftttQiK0g+ny1BtTiCd0ulD S/H2uuaBbaMys1eN1qkzWPITJoxe3vuUq7BagicWa+2yIOen7pZNuQ8oUFxofKYxo4vq 2VAdMM56PnhpvVpMKR8xI84zhY0f2c/tyWkAPoCz3qMNY8uZE/F0dIJk7P/prrsWGPyt 7dbg== 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=zWvlDm9hhFZkrdkaC2XFt8A0sbOQiaJ6DORh+Lhw6t4=; b=lp861Hx0wI+b34smlPQJI52PWC+R/yqEIiSZAPIZHU0FXyMA6Q9l3fyZqvIBjceYJ9 1D84VuD5PcStgUp+sph27y+TH+1Gq9/FQtv4JMG03VRg/kfaU/xhqxsJcQP98tIzwvbj nhLwh7Bjc78FHOjjT+IkZywQDbpxWp86X3vfFpyUO2wkPCiQ7wvKLd0kgqb4ZgPbZr4u eWL/A4+/EFm95u1Jz4BkYANHjCIZFCtZgPOdrPIzT+KQnH2I7LDUcjf+LmCRyoPMURxR Ea23XoK4qHiDZKOqVWkugf7tH7D+M3HNIDg9nZO+dZeXf1mld/6rw7ElE1w17wE3l+TC TLGA== X-Gm-Message-State: AOAM530CFHCtlkK0DFXsFLyal1SBsw6EYv3hpcczT8L7Gt/7Ld1xueAK wvDc73vRXNafhGw81lZTA9M= X-Received: by 2002:a05:6402:4c1:b0:42b:e03f:d940 with SMTP id n1-20020a05640204c100b0042be03fd940mr8746801edw.235.1653686201174; Fri, 27 May 2022 14:16:41 -0700 (PDT) Received: from orion.localdomain ([93.99.228.15]) by smtp.gmail.com with ESMTPSA id g18-20020a170906869200b006f3ef214df2sm1771278ejx.88.2022.05.27.14.16.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 May 2022 14:16:40 -0700 (PDT) Received: by orion.localdomain (Postfix, from userid 1003) id 0DF9FA0017; Fri, 27 May 2022 23:17:10 +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: Fri, 27 May 2022 23:17:06 +0200 Message-Id: <20220527211708.839033-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=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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-rc2. This is second version, I forgot to include one header file in the first 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