Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp758093ybl; Tue, 13 Aug 2019 02:04:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqxaxwhJhtkG4cs8RU9yF0sSYBdHwjYnMZa8mIctJf8a9/GiBPHTDU0un2kHgWqfhVS7eUpG X-Received: by 2002:a17:902:6a8b:: with SMTP id n11mr17611126plk.263.1565687059233; Tue, 13 Aug 2019 02:04:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565687059; cv=none; d=google.com; s=arc-20160816; b=QwhMskAi2VH0Y83A8QvRSM/S2/da80rMklKCV8JXT77KS1KQ9vpVzGZ2cBLqsGT5zR AfTg+FNalwmW6i2bu+Q6ydUMxKSd54aSqKvrTWP+2Om8rSwnIcau2O79ZlaEB7kXjl1k OahhcFrcgDNVtxmBRylc8xfzEyY6k4BxlDFmsp+FnQZB/uYqnLDWh8ClLa1YfKLx167C xWIDnKNpWep9kmI4kNBi9cZlJb8L+jEI1M33QuYlP1bsvY++TYVhxS1A/68NS7UMBFJA 7DCDWqgpVnPtcHr6TiCyN5Cqu3LUNNa9wsykiNiPwti5P4twDKCcYpYvzu6/20I+wTmz t9Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:date:from:dkim-signature; bh=zbadPFLbmftsI8N+IuNnBjaQB4827jD6fnEJgLKNTZs=; b=jW6/NazyBtFV78u9HmRiFsBqPNGr4x1k9bFWhphK2/xbBuwhPi4gDk3+5Hh8bNT5NW w9j6A3PVKl1mikbFJBayinJsbCUooY8aSMirzfNqN0mTPNQebhp1//8f132gT9sAf6+6 kv88onUSjKC2kFbfqFnmV5QEAqmJvCD814iakvKilEZ4ctlZfMSL7zli0dYZ4lbKQa1i vXtT1LD8evRfyFx6CWXGN6c3YwWsLQD9sS34fNQYZFHp00lCmNqHAQ+f9VTIqnxIcOyH Tv2DFtczvOCQ2kCEdfimX9IGDHujCCqyNseJpqWBP6a5Lp1zVyycvg1WfBl5jBYWmXpJ jo1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hLZf25bq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g1si58966481plj.194.2019.08.13.02.04.03; Tue, 13 Aug 2019 02:04:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hLZf25bq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727505AbfHMJC2 (ORCPT + 99 others); Tue, 13 Aug 2019 05:02:28 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:42157 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726963AbfHMJC0 (ORCPT ); Tue, 13 Aug 2019 05:02:26 -0400 Received: by mail-lf1-f66.google.com with SMTP id s19so13555466lfb.9 for ; Tue, 13 Aug 2019 02:02:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=zbadPFLbmftsI8N+IuNnBjaQB4827jD6fnEJgLKNTZs=; b=hLZf25bqcvbX25xNuMZbR5PzvxV6GImnoNKHQjbf8sETv7Ar9mx/GVJVNlFBiUoI+x OaBu+PCv1W1Alu6XSNHoHrNCp537Atpgj+R9HmRLZFXqzKsJ80D0kddeGkeb1Dqn7Kh4 2qCin8I2SdptK0jFV8ULLCBJ5lOvpY0rk8B58UyCaS71IqEbPmstIIGYsGLKFiUdRVeg 4x0pTMXVaKNeZJQeADuHIPNtlLphOYlT0XTQncnLpdJrQPPcNRRt+vf/l9AFxpkaF5yX xnhwZBqi6uccNYt04vgFRAZzxWAC+/fwgCCIT+XdyRKjlzxTa9KCw0iUesn6i5pyFpVa Nq0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=zbadPFLbmftsI8N+IuNnBjaQB4827jD6fnEJgLKNTZs=; b=TrIdJSoXycizfAhkQjk9ZKBuEd1iQwn80xYX69e6RTlb8vZ4KSj2/clKHF8MiYxWii US1JTbv48aW5SkzuDN00sFv0rUtnN1SgQONsq/z67xZ/2Hd0l6P+i89NCwk/ukPLONo2 8TeR7jWf/mATQBXuB9JTvV4ntzwZGX0XrobTLnpGH4rAMpNef5uJZOj+LY8I04laicM3 3Uwlt8kEoCuIYkMjMD5dofqh9aQwjocvoeSxsCu8okKKcRoBqR8eoRZNLgUAqNYwrIT6 rdXgLXVw984mnWAr+L1s+78rguV9eYq6zyQcbhL8HvBptURp7bdhg5Nx9cS08sykGyts +RZw== X-Gm-Message-State: APjAAAXeFu5QcTbRkK2GR8yI/xr2aVx+Jhb6uSOebqKFvLymRzhHojro g/vFjY98HBuu5dDe/mYjq/E= X-Received: by 2002:ac2:4948:: with SMTP id o8mr1126632lfi.13.1565686944834; Tue, 13 Aug 2019 02:02:24 -0700 (PDT) Received: from pc636 ([37.212.214.187]) by smtp.gmail.com with ESMTPSA id o3sm19538418lfb.40.2019.08.13.02.02.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 13 Aug 2019 02:02:24 -0700 (PDT) From: Uladzislau Rezki X-Google-Original-From: Uladzislau Rezki Date: Tue, 13 Aug 2019 11:02:14 +0200 To: Michel Lespinasse Cc: "Uladzislau Rezki (Sony)" , Andrew Morton , linux-mm , LKML , Peter Zijlstra , Roman Gushchin , Hillf Danton , Michal Hocko , Matthew Wilcox , Oleksiy Avramchenko , Steven Rostedt Subject: Re: [PATCH 2/2] mm/vmalloc: use generated callback to populate subtree_max_size Message-ID: <20190813090214.xy6tgvar6kiartkb@pc636> References: <20190811184613.20463-1-urezki@gmail.com> <20190811184613.20463-3-urezki@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Aug 11, 2019 at 05:39:23PM -0700, Michel Lespinasse wrote: > On Sun, Aug 11, 2019 at 11:46 AM Uladzislau Rezki (Sony) > wrote: > > RB_DECLARE_CALLBACKS_MAX defines its own callback to update the > > augmented subtree information after a node is modified. It makes > > sense to use it instead of our own propagate implementation. > > > > Apart of that, in case of using generated callback we can eliminate > > compute_subtree_max_size() function and get rid of duplication. > > > > Signed-off-by: Uladzislau Rezki (Sony) > > Reviewed-by: Michel Lespinasse > > Love it. Thanks a lot for the cleanup! Thank you for review! -- Vlad Rezki