From patchwork Fri Oct 13 23:35:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Lyle X-Patchwork-Id: 10006119 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 98FBF60230 for ; Fri, 13 Oct 2017 23:36:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 894A029009 for ; Fri, 13 Oct 2017 23:36:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7E3142918B; Fri, 13 Oct 2017 23:36:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.4 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E8CE92918E for ; Fri, 13 Oct 2017 23:36:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753228AbdJMXgD (ORCPT ); Fri, 13 Oct 2017 19:36:03 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:54317 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753089AbdJMXgB (ORCPT ); Fri, 13 Oct 2017 19:36:01 -0400 Received: by mail-pf0-f196.google.com with SMTP id n89so3875993pfk.11 for ; Fri, 13 Oct 2017 16:36:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lyle-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=7puarbSqMR7Spl0n3aZ9keyMpmVn0SzRFMR5XpjcMHc=; b=icT/oFRJX2JPu6tzNVMXlBMcyNgmboobNvteC9KwKVkIGCuaCstg9qmtRHL1zDN7ew VqtMv+8bDSmTFVfdIaLtUU6pd0JJ/MV5+flGaRW1jTJ26peRN/dATY+JHKziM3d0OWwo dp7WCz/rnQzHjzAVyshlWrCGi5S4R9o46QaoyYHEKfrq0RiL7CPv7eZ4WTt01T+JluLF MOQZ1GBFY4t+bXsZzqF8R9VfEJuZTVOkCxZves/ev2by2Vz8urd58WYhNKVh+UNNO2AF mtl92X4YwpzhptoEVO0JkAmkEZOycoIkf9OFbpVQSVVEGu9ftiOLp5ZayVs3JrUFwkQZ /kTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=7puarbSqMR7Spl0n3aZ9keyMpmVn0SzRFMR5XpjcMHc=; b=XpIZkdeQNTTQtTEEzhfbKgjPVdZqOg0YKLTBhotr8fbAzohd6ELW1C2XFSM2ElB9uc WX+flm/MUbTZHLJxKdGlsPdjehyq6sh5sqfzoHkY6z5MRP/F8rUgBm9PmXIxqYEVoM6P qchqE5KGBgzwTsuyW1AJmueWVHDQOrDGQgiGxt3MFNJQWhUOJWhNvWUutasAGirg3rst LpsUKfzotD6ETwHsWOWNoiQ5Mqdsg2VSYkXnOJxcg63PgnYayrzN5bkkECYHbxII3Gmj jxzltk2EGb7d6IUHkZeEcpJPRx9hnkfyCCDxtGz7sV0UzFFj8l1bP3kWSGBajdDYjLJW PdNA== X-Gm-Message-State: AMCzsaXpwkiZwvwZ/qcweN5nM7v9dl+DNlGR74gYwtYvCuq92MIIK7pH cV6Ann0Rg2sHZ9aDHExoXycxVA== X-Google-Smtp-Source: AOwi7QCP3lK8I7ZrqxTB0lhvt6jqj+WWd57P2/q8GvnP8XX3wrYLSy7nKx8Q2pURIN77y2iD04tRpQ== X-Received: by 10.98.75.221 with SMTP id d90mr2690921pfj.90.1507937760550; Fri, 13 Oct 2017 16:36:00 -0700 (PDT) Received: from localhost.localdomain (68-189-67-104.dhcp.prtv.ca.charter.com. [68.189.67.104]) by smtp.gmail.com with ESMTPSA id 74sm4950718pft.184.2017.10.13.16.35.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Oct 2017 16:36:00 -0700 (PDT) From: Michael Lyle To: linux-bcache@vger.kernel.org, linux-block@vger.kernel.org Cc: axboe@fb.com, Coly Li Subject: [PATCH 03/15] bcache: fix a comments typo in bch_alloc_sectors() Date: Fri, 13 Oct 2017 16:35:30 -0700 Message-Id: <20171013233542.20938-4-mlyle@lyle.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171013233542.20938-1-mlyle@lyle.org> References: <20171013233542.20938-1-mlyle@lyle.org> Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Coly Li Code comments in alloc.c:bch_alloc_sectors() mentions a function name find_data_bucket(), the correct function name should be pick_data_bucket() indeed. bch_alloc_sectors() is a quite important function in bcache allocation code, fixing the typo may help other people to have less confusion. Signed-off-by: Coly Li Reviewed-by: Tang Junhui --- drivers/md/bcache/alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/md/bcache/alloc.c b/drivers/md/bcache/alloc.c index e1a4205caa2e..4c40870e99f5 100644 --- a/drivers/md/bcache/alloc.c +++ b/drivers/md/bcache/alloc.c @@ -601,7 +601,7 @@ bool bch_alloc_sectors(struct cache_set *c, struct bkey *k, unsigned sectors, /* * If we had to allocate, we might race and not need to allocate the - * second time we call find_data_bucket(). If we allocated a bucket but + * second time we call pick_data_bucket(). If we allocated a bucket but * didn't use it, drop the refcount bch_bucket_alloc_set() took: */ if (KEY_PTRS(&alloc.key))