Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1550DECE588 for ; Tue, 15 Oct 2019 12:10:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E21B0205F4 for ; Tue, 15 Oct 2019 12:10:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727998AbfJOMKw (ORCPT ); Tue, 15 Oct 2019 08:10:52 -0400 Received: from mx2.suse.de ([195.135.220.15]:59098 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726540AbfJOMKw (ORCPT ); Tue, 15 Oct 2019 08:10:52 -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 63768B2FC; Tue, 15 Oct 2019 12:10:50 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id 3BC04DA7E3; Tue, 15 Oct 2019 14:11:02 +0200 (CEST) Date: Tue, 15 Oct 2019 14:11:02 +0200 From: David Sterba To: Dennis Zhou Cc: Josef Bacik , David Sterba , Chris Mason , Omar Sandoval , kernel-team@fb.com, linux-btrfs@vger.kernel.org Subject: Re: [PATCH 01/19] bitmap: genericize percpu bitmap region iterators Message-ID: <20191015121102.GT2751@twin.jikos.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, Dennis Zhou , Josef Bacik , David Sterba , Chris Mason , Omar Sandoval , kernel-team@fb.com, linux-btrfs@vger.kernel.org References: <20191007202612.mer74bok5ymyxae6@MacBook-Pro-91.local> <20191007222419.GA26876@dennisz-mbp.dhcp.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191007222419.GA26876@dennisz-mbp.dhcp.thefacebook.com> User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Mon, Oct 07, 2019 at 06:24:19PM -0400, Dennis Zhou wrote: > > > + * Bitmap region iterators. Iterates over the bitmap between [@start, @end). > > > > Gonna be that guy here, should be '[@start, @end]' > > I disagree here. I'm pretty happy with [@start, @end). If btrfs wants to > carry their own iterators I'm happy to copy and paste them, but as far > as percpu goes I like [@start, @end). It's not clear what the comment was about, if it's the notation of half-closed interval or request to support closed interval in the lookup. The orignal code has [,) and that shouldn't be changed when copying. Or I'm missing something.