Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1311803ybp; Fri, 4 Oct 2019 12:42:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqzO23MFC3O9wUNI9JvyXpc6QMWjUDQQGHfIfKh09nV8oA/Z6mskZGihtnwuLrEIfWgHpw4U X-Received: by 2002:a50:98c6:: with SMTP id j64mr17314978edb.34.1570218177581; Fri, 04 Oct 2019 12:42:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570218177; cv=none; d=google.com; s=arc-20160816; b=Lh5kS450jCdECC+nWOgFeyqWLnIlnlPrF0zFx6h7gLK9C6i8S6a8FWXCNnxk2jL/g5 gZmsrq7u1Wv5r/QFT8hn912kHWxuxNkKeJSaoDOi2kEyJ7PrRsP+IXxk1Qi5mUCW+yGs 5PNqtwsUn4Gg5dynqV5759/XnfGvV5W1RwN+kGK1xIzKpNoiLCb9Aa2c7ZOMaFF9eRsI Svr7up89M8SvjNk+nsl90ssiDkYx20srtjycEgqlri4ENGgRGUXfFpIi140eTgI1lW2e LqWCE4dED0h/IC6bc0y88a3Z9Ywn5AkkxHa01AkOje37JojxZv74Rozm65zvsUDncN+6 gDPA== 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:mail-followup-to :message-id:subject:cc:to:from:date; bh=AJUHqKVcTuvNhtDuZh6xIlfxSnOVFHMAiwhpz+hnEeE=; b=AvW0uriW5qtmeY/QOAI4gTGkCvVzggornW7PzXxWr5u7V8tTjeLdp1nR5L+KDTkMEj 2op/4NBaQXiefoYSJ3HMI2/fm5EMfCm/ovNbmRkic3IkOY6GpCWxNhzRhHxDrP+PjYpI gfPpwbvsPaEi8hZ0cXBCDSETnckKHltmY8v/OHLOY+ki3iIIF20q7UYJd9+bNVQx7mWg GQIktgDWjMdQ2ow9v1Yc1MnRM98XnGDKs8LnAP2CFOT4kgFgnqCSofsIWM8Oxtp9q1Gd zRmLgg2xP2ArEKYzQdXdfgh0E9i73ZghKDJQH3sCPr6bo7YQJNkb0DK0zXpt+75odbiv 9Dqw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bo22si3389427ejb.369.2019.10.04.12.42.33; Fri, 04 Oct 2019 12:42:57 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730579AbfJDTmW (ORCPT + 99 others); Fri, 4 Oct 2019 15:42:22 -0400 Received: from mx2.suse.de ([195.135.220.15]:50378 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727978AbfJDTmW (ORCPT ); Fri, 4 Oct 2019 15:42:22 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id AF892AD4F; Fri, 4 Oct 2019 19:42:20 +0000 (UTC) Date: Fri, 4 Oct 2019 12:41:11 -0700 From: Davidlohr Bueso To: Michel Lespinasse Cc: akpm@linux-foundation.org, peterz@infradead.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, dri-devel@lists.freedesktop.org, linux-rdma@vger.kernel.org, Mike Marciniszyn , Dennis Dalessandro , Doug Ledford , Davidlohr Bueso Subject: Re: [PATCH 05/11] IB/hfi1: convert __mmu_int_rb to half closed intervals Message-ID: <20191004194111.2ntsr5kus5dgnnt4@linux-p48b> Mail-Followup-To: Michel Lespinasse , akpm@linux-foundation.org, peterz@infradead.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, dri-devel@lists.freedesktop.org, linux-rdma@vger.kernel.org, Mike Marciniszyn , Dennis Dalessandro , Doug Ledford , Davidlohr Bueso References: <20191003201858.11666-1-dave@stgolabs.net> <20191003201858.11666-6-dave@stgolabs.net> <20191004115057.GA2371@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20191004115057.GA2371@google.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 04 Oct 2019, Michel Lespinasse wrote: >On Thu, Oct 03, 2019 at 01:18:52PM -0700, Davidlohr Bueso wrote: >> diff --git a/drivers/infiniband/hw/hfi1/mmu_rb.c b/drivers/infiniband/hw/hfi1/mmu_rb.c >> index 14d2a90964c3..fb6382b2d44e 100644 >> --- a/drivers/infiniband/hw/hfi1/mmu_rb.c >> +++ b/drivers/infiniband/hw/hfi1/mmu_rb.c >> @@ -47,7 +47,7 @@ >> #include >> #include >> #include >> -#include >> +#include >> >> #include "mmu_rb.h" >> #include "trace.h" >> @@ -89,7 +89,7 @@ static unsigned long mmu_node_start(struct mmu_rb_node *node) >> >> static unsigned long mmu_node_last(struct mmu_rb_node *node) >> { >> - return PAGE_ALIGN(node->addr + node->len) - 1; >> + return PAGE_ALIGN(node->addr + node->len); >> } > >May as well rename the function mmu_node_end(). I was worried if it >was used anywhere else, but it turned out it's only used when defining >the interval tree. Right. In general I tried not to rename everything to end because I wanted to avoid bloating the diffstat, albeit having naming discrepancies within the code (which isn't new either fwiw). > >I would also suggest moving this function (as well as mmu_node_first) >right before its use, rather than just after, which would allow you to >also remove the function prototype a few lines earlier. Indeed, but again I don't want to unnecessarily grow the patch. I have several notes to come back to once/if this series is settled. > >Looks good to me otherwise. > >Reviewed-by: Michel Lespinasse Thanks, Davidlohr