Received: by 2002:ac0:a874:0:0:0:0:0 with SMTP id c49csp148308ima; Thu, 14 Mar 2019 22:50:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqxWFym27zPzCXYZFZ9H2EkGNqDa2WaQsG86/wLjADoXVU+RM36Q19xfEqcIJ5VEPmI0C8kW X-Received: by 2002:a17:902:6b08:: with SMTP id o8mr2285211plk.105.1552629059296; Thu, 14 Mar 2019 22:50:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552629059; cv=none; d=google.com; s=arc-20160816; b=GeBRFSB9SoI2+k4YT6XG4fzHkUM+54RyBbfJyMhuRe5kVB+XNQNs9BjRalFkOtqVsN Lssb5+3XpzJosUNdqIPQNuu3Ej/ozfsNQEkesoqwu5t2vBdBEMLrDsKnAIFCnpAojqf4 jH8ZUptU37Ulii/U204dNdRHx8LWMtJgxgf67YWzBK1WbGlLNekwMN8Y4qJAzh5alAw+ 4/6KYNsM/UKZlOIu06bObaj7GhjMGKEh0zqSh9oXi1d1riZPNT9SFSE3F4Qe8zcervjz f76RmvcKUT1MS8n2peo5BMO4N/P+9CdXdHK3ImeuYW4zOvDcvI3h3tOqM8iqf3YWjyhj wK0A== 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:from:date; bh=QdghPUTkyS8/und4n3EC2TxXTrsYvqV3Q87nYUEj4L4=; b=KFa6uuZr85ELDURvEwxERR1I4ac8fMh3ySyvbJIoyDptYEblhQr/8kkq+yrFr42Rck HNyQc1efOiPXsct9faakISjVUu62eKZRCgT/EZYTqNa2kgwQl/wGX2k2Cd+i30dJPlax /FvfHO8tWY05TeOAJfu9mOw/PDLEG0NTSvf09uPcFjQhB4CGmh7cyqw/h+TDyngIdlCJ bm+9VnjmNkTpFwQDXj5/A8r0P1hQVV3uUzD0XTn6Xrt/wjJwtCtTbXTS1O9IoATeJWRE tqDrUFOWGXgB3+sjKQnAB/30OGyn/BKe2qsByLKcu4muWw6zWZ/z3xPN0lu9rP/QOgT5 SYrA== 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 x2si934650plo.360.2019.03.14.22.50.43; Thu, 14 Mar 2019 22:50:59 -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 S1728298AbfCOFtn (ORCPT + 99 others); Fri, 15 Mar 2019 01:49:43 -0400 Received: from orcrist.hmeau.com ([104.223.48.154]:51846 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727151AbfCOFtn (ORCPT ); Fri, 15 Mar 2019 01:49:43 -0400 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtps (Exim 4.89 #2 (Debian)) id 1h4fiq-0006sG-EB; Fri, 15 Mar 2019 13:49:36 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1h4fiq-0000Ws-7m; Fri, 15 Mar 2019 13:49:36 +0800 Date: Fri, 15 Mar 2019 13:49:36 +0800 From: Herbert Xu To: NeilBrown Cc: Thomas Graf , netdev@vger.kernel.org, "Paul E. McKenney" , linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] rhashtable: rename rht_for_each*continue as *from. Message-ID: <20190315054936.hegjwrwkzdig772c@gondor.apana.org.au> References: <155253979234.5022.1840929790507376038.stgit@noble.brown> <155253992833.5022.6459847129731180970.stgit@noble.brown> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <155253992833.5022.6459847129731180970.stgit@noble.brown> 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 Thu, Mar 14, 2019 at 04:05:28PM +1100, NeilBrown wrote: > The pattern set by list.h is that for_each..continue() > iterators start at the next entry after the given one, > while for_each..from() iterators start at the given > entry. > > The rht_for_each*continue() iterators are documented as though the > start at the 'next' entry, but actually start at the given entry, > and they are used expecting that behaviour. > So fix the documentation and change the names to *from for consistency > with list.h > > Signed-off-by: NeilBrown > --- > .clang-format | 8 ++++---- > include/linux/rhashtable.h | 40 ++++++++++++++++++++-------------------- > lib/rhashtable.c | 2 +- > 3 files changed, 25 insertions(+), 25 deletions(-) Acked-by: Herbert Xu Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt