Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3187932ybl; Sun, 11 Aug 2019 17:41:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqyW+K9pbhjmEz/kZERFne6ZanuTCGH5QBI9iIVNnprhkxYlmhGPTl+1jRmfpXp6Y8+oLyOf X-Received: by 2002:aa7:8e17:: with SMTP id c23mr33446187pfr.227.1565570506720; Sun, 11 Aug 2019 17:41:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565570506; cv=none; d=google.com; s=arc-20160816; b=RLTn/hzyNSEKnKHtMoJKR8fPvodcji7greEn7xieHwL5fQpc71+Z+5KKb5JOCLr4+T CKKbaFTbj3wzE/GVqZU94yd39rDna+yoGIMy7XqJRfFRwb8lXFXMj/I1uVRTo1IKOf9l 5ejNhNzxjA8mzzq53YwItgWixlQWY46Sg17H4pEsa73RjzJ8Nk0jix74VPVIRD/VPrQf brDRp6dNd0owBuBSwQNaW/AlebZbH+4k4LCkzeQijxBdCnQv0SaCzv1/GLFf0Nqi2n2T PP/KWlI+ZN9eJ+VJNK5seslXUXKefKyLXRzrVfrRFbnlBvk8XOl2Mum64VaWqwCTsazk 1aNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=6K0DvhL9RJkMUKWGy9bBRNsMSDRRIMczdHWxj2ZlOLY=; b=qC2Cnotu5XeqIbCRNKFuLCwspnLimmNATLyI6x/ESRXFgAx8QCuJ2DAwvl9utmqVLv eKFoQmIpLLgQQMXPMcpmzRvV5CN1esBrIp20Tb3kT3DMo5q1dbhRT0fKW/W4uz0+IT3Y mErIUsuVgluCkNc2ympaRpDZimrJL/KaTQBBf/+JmLEsfedSEzFhp5iU8ubpc/mWLznX iX46XG7FqQI7ko+C9tzFX9g7lDniyei2NSg4o8otoc/BKQu4JnnOB8IcuNZduJWpTkzW 9fOarToBDwMtHz8zvXMgSBkS4jv4ercILTFpYguFly3diUggujPDaSxqEGhx8fdhVx1z bLYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=IKqPzlkB; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y1si1746413plr.164.2019.08.11.17.41.18; Sun, 11 Aug 2019 17:41:46 -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=@google.com header.s=20161025 header.b=IKqPzlkB; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726719AbfHLAji (ORCPT + 99 others); Sun, 11 Aug 2019 20:39:38 -0400 Received: from mail-ua1-f65.google.com ([209.85.222.65]:43524 "EHLO mail-ua1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726200AbfHLAjh (ORCPT ); Sun, 11 Aug 2019 20:39:37 -0400 Received: by mail-ua1-f65.google.com with SMTP id o2so39694913uae.10 for ; Sun, 11 Aug 2019 17:39:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6K0DvhL9RJkMUKWGy9bBRNsMSDRRIMczdHWxj2ZlOLY=; b=IKqPzlkBpTxY+A47jneyPgFuefY8XtvBtZMXnqH7VkTU2q0nJcG3iIRUuKxPVzsVSJ qaquyNCY/6XJ7D82HonO4EBmwolNEFZ0EKXfqOGLmnfrGtGIpfHMNqIlMKefsCRAFSqZ JoExbp3p4N4WfyaHmR6RVo8ExwftKr4w/E5HNtfOeBbT3xa+aoWI8ruwrdtCuWimPd7I V3y+2iKeKtWpb4vFKx67OmWGvsA4thlgxbOSxsJnlK/b/PEdRHBI7Ylo+rUgOPHJMOjh BmhzmtoZeu51qfUhDBUGVzA8g+COBbey3b1/Z7KDSww6AYJInUYcnDhyf5zz4TAnOhqH Un5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6K0DvhL9RJkMUKWGy9bBRNsMSDRRIMczdHWxj2ZlOLY=; b=HtBCKmbjdLWNkW2jLt8Osea39p+fu4nUe481PY3jBByms6SB5G4jMgoe8eyOBt9EHB M8oE0HPgieCy2QPZLZZD5BMW333UG6JVD9VJ3zWNplTwEq0VEeuCo05Syu/EMsI/sO6T 8yK8SbvbfY8npIq3tkUTlTyKTnuRLtqxj9yAIcUwxtRTn8Thnb1IVOo2ykQRCZJPqi3b uCqAiUK6+KX2hcm5yGCL/e4gdyyJ2XKqkowW0suVfepAfEt3FeacO1HZRKIfV/15AFu3 dE1K2IsVJ8eq2J1dWE85xbQiUqXWOtFQ9AEklIWvB9hbvHYwjXElVsOM7T75yTZX/qdI K43Q== X-Gm-Message-State: APjAAAW2FoTMWNegay2LctcNGBFQ6buGUTldqFAsiT372QzZbgEBH0Ss Gf204vCYr0IXZo/s+uApPrepviKLWacUOa3cwVQEsg== X-Received: by 2002:ab0:7618:: with SMTP id o24mr18290583uap.39.1565570376227; Sun, 11 Aug 2019 17:39:36 -0700 (PDT) MIME-Version: 1.0 References: <20190811184613.20463-1-urezki@gmail.com> <20190811184613.20463-3-urezki@gmail.com> In-Reply-To: <20190811184613.20463-3-urezki@gmail.com> From: Michel Lespinasse Date: Sun, 11 Aug 2019 17:39:23 -0700 Message-ID: Subject: Re: [PATCH 2/2] mm/vmalloc: use generated callback to populate subtree_max_size To: "Uladzislau Rezki (Sony)" Cc: Andrew Morton , linux-mm , LKML , Peter Zijlstra , Roman Gushchin , Hillf Danton , Michal Hocko , Matthew Wilcox , Oleksiy Avramchenko , Steven Rostedt Content-Type: text/plain; charset="UTF-8" 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 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!