Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp3283721lfo; Mon, 23 May 2022 00:40:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxkK2aCm76jBOcwdWiO6go2vgd7WmqnHaeUcuNd3pAuiYjnUeyrlUSnL/95EDNYHFGAVDb X-Received: by 2002:a17:90b:1298:b0:1df:2fb5:be35 with SMTP id fw24-20020a17090b129800b001df2fb5be35mr24819190pjb.198.1653291609502; Mon, 23 May 2022 00:40:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653291609; cv=none; d=google.com; s=arc-20160816; b=JajfqRpwOIKZ6YklgclneVMCEzI4Xo+QpQFW5MSTHXCjYYdsqcrcCJ4A9EMUrv59+B 9WqJ/Gv0ZmtvZVGRHQV/rEsGHDAjSnJOdlGffzLPmXlwnz1q1zitrioGWN2fs1jys1vV xhDyr/2sAkfzGGOs3o688KH3srblRBysoVRtABYsdFsFupPXvsSyQDMGJ6gAHfavT1PJ AEF0rUY7CbwRS+ENBEeSeLrTwwl01vrMK+7cGYE8WOJOzpqCEKSHmE0/faMG813cQ+77 46nxXBCfXuZSb/5BAokwyjifnHuKWjg99+4hgrhNRnZBlnXXPqeXu7VC/CxPEKvXzfvB /pqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=/1UN+TaMaEHcux1d6IJ2KDdfHYHO4F5ExU+odphW0WU=; b=f8U9EjZT1Q1CqkE89sftg0/fjiucwfFL4wcsw4okFqW0/ugrh2Qy2wyY/4vvRVMynD Oygdcl5xrWOTRIkHTO4pkb2whHOLJAh+pZsgbCxz8ypwm3EhffmnaKfGN6NAfDeo60fB +3//eXZtY9fGeTQML1lgQvOEUldOPCmOo278WZLphr1sCPcRorLhcOQBgaQSNiHRQ6Ku rrZd2452B/r4NvqaArdnUWhZtLhIXMHpPFyw8hKMoBHtzpa4HiGIg/56g8gwOZzGPjn+ DIYrNyNdOT2Mf3VDvtCnwDW7b+6CvGb9/SqVtQ7NJ5BMeO++ph757mAsjZHrnokeQ2O/ GbfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov-name.20210112.gappssmtp.com header.s=20210112 header.b=duNEHjCO; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id t3-20020a17090aba8300b001d95105b9f5si11153422pjr.90.2022.05.23.00.40.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 00:40:09 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@shutemov-name.20210112.gappssmtp.com header.s=20210112 header.b=duNEHjCO; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D1BD01CA055; Sun, 22 May 2022 23:47:34 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348339AbiETN0R (ORCPT + 99 others); Fri, 20 May 2022 09:26:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349862AbiETN0L (ORCPT ); Fri, 20 May 2022 09:26:11 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D75441F8E for ; Fri, 20 May 2022 06:26:09 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id w14so14262887lfl.13 for ; Fri, 20 May 2022 06:26:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov-name.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=/1UN+TaMaEHcux1d6IJ2KDdfHYHO4F5ExU+odphW0WU=; b=duNEHjCO0S0AOhMSt8aOd7DDMhxLHCQYK4g5GNHpXgS79y73DaQzAHn91LKMBCeOgD 1ZCPBLge3Cn96dQLOkEBsSLL8tRzqmO3sGp3nbRNnSbFVVEe05nol/Ts0rtg+UAT5qf9 KrNsl2YTbt0ua/0c/1wDITK3tAgfp6sVbaMT/a5Z5VnEQvz8Oiu5GqFx3STskU1zBxBj WAOOE/4pBlOlTxjiZHB9p7CsDOnB+gRVfv5zGcBZsLKkBGcQE8O7ImKGFxpuI6e/D3tb 3gHeJLsT5Hvg9DpkdOoOJfn7w5twy49l2wvF9yWDtJfERc9MdiKHDpnN+gWxhwOaosHA xfbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=/1UN+TaMaEHcux1d6IJ2KDdfHYHO4F5ExU+odphW0WU=; b=xzHqCojVquwapH4EN7uVa65YultU0WhjHIJGF2r5AprVix0FBE7g9JuOmLLmMfWguY NU0I50oMODMmwKwyq/2cQ+oIaljUZ1lmxaqdQGRB9yBaGNhSPmq8KoszxVFS6jvyPdEu FpmdwH3sVY1qjArmmwD/fyVQDVW9sq1KNSg80pIFACussK7TbMY72RCGDvHSV3I0iXc2 kRTq+cceAkLzcoY3H1sWMH8NDezvf7uDRvXY3PMXB5ydViEX+LW/2MXvtD6J+TaRlPLm S6p28FktoBF+uIgga89D/DWnWr4TwQcpXks8WYHIPeoBC3GPGRnB6M6rEXfQGUnOD7p2 1d6w== X-Gm-Message-State: AOAM533TcAELlVSo5Qa53kzAU+j7EBbICVivux7FDLHJtrCWZK9NskBn D0JlHN0F7+npQTZjP+uVy68Sjg== X-Received: by 2002:a05:6512:10cf:b0:473:b735:4fae with SMTP id k15-20020a05651210cf00b00473b7354faemr6947736lfg.93.1653053167466; Fri, 20 May 2022 06:26:07 -0700 (PDT) Received: from box.localdomain ([86.57.175.117]) by smtp.gmail.com with ESMTPSA id o3-20020ac24e83000000b0047794db1ffasm659901lfr.237.2022.05.20.06.26.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 May 2022 06:26:06 -0700 (PDT) Received: by box.localdomain (Postfix, from userid 1000) id 61396104AAB; Fri, 20 May 2022 16:28:00 +0300 (+03) Date: Fri, 20 May 2022 16:28:00 +0300 From: "Kirill A. Shutemov" To: Jakub =?utf-8?Q?Mat=C4=9Bna?= 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, riel@surriel.com, rostedt@goodmis.org, peterz@infradead.org, david@redhat.com Subject: Re: [RFC PATCH v3 1/6] [PATCH 1/6] mm: refactor of vma_merge() Message-ID: <20220520132800.hijytnlyjqeesjfj@box.shutemov.name> References: <20220516125405.1675-1-matenajakub@gmail.com> <20220516125405.1675-2-matenajakub@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220516125405.1675-2-matenajakub@gmail.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 On Mon, May 16, 2022 at 02:54:00PM +0200, Jakub Matěna wrote: > Refactor vma_merge() to make it shorter, more understandable and > suitable for tracing of successful merges that are made possible by > following patches in the series. Main change is the elimination of code > duplicity in the case of merge next check. This is done by first doing > checks and caching the results before executing the merge itself. Exit > paths are also unified. > > Signed-off-by: Jakub Matěna Okay, this looks good: Acked-by: Kirill A. Shutemov I would also consider renaming 'area' to 'vma'. 'area' feels wrong to me, but maybe it is only me. -- Kirill A. Shutemov