Message ID | 20190424164843.29535-3-colyli@suse.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-block-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8C3A314DB for <patchwork-linux-block@patchwork.kernel.org>; Wed, 24 Apr 2019 16:49:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7B8DB2898B for <patchwork-linux-block@patchwork.kernel.org>; Wed, 24 Apr 2019 16:49:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6EB15289FA; Wed, 24 Apr 2019 16:49: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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI 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 1E3152898B for <patchwork-linux-block@patchwork.kernel.org>; Wed, 24 Apr 2019 16:49:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732560AbfDXQtG (ORCPT <rfc822;patchwork-linux-block@patchwork.kernel.org>); Wed, 24 Apr 2019 12:49:06 -0400 Received: from mx2.suse.de ([195.135.220.15]:59850 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726935AbfDXQtG (ORCPT <rfc822;linux-block@vger.kernel.org>); Wed, 24 Apr 2019 12:49:06 -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 D568CAF58; Wed, 24 Apr 2019 16:49:04 +0000 (UTC) From: Coly Li <colyli@suse.de> To: axboe@kernel.dk Cc: linux-bcache@vger.kernel.org, linux-block@vger.kernel.org, Guoju Fang <fangguoju@gmail.com>, Coly Li <colyli@suse.de> Subject: [PATCH 02/18] bcache: fix inaccurate result of unused buckets Date: Thu, 25 Apr 2019 00:48:27 +0800 Message-Id: <20190424164843.29535-3-colyli@suse.de> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20190424164843.29535-1-colyli@suse.de> References: <20190424164843.29535-1-colyli@suse.de> Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: <linux-block.vger.kernel.org> X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
bcache patches for Linux v5.2
|
expand
|
diff --git a/drivers/md/bcache/sysfs.c b/drivers/md/bcache/sysfs.c index 17bae9c14ca0..6cd44d3cf906 100644 --- a/drivers/md/bcache/sysfs.c +++ b/drivers/md/bcache/sysfs.c @@ -996,8 +996,6 @@ SHOW(__bch_cache) !cached[n - 1]) --n; - unused = ca->sb.nbuckets - n; - while (cached < p + n && *cached == BTREE_PRIO) cached++, n--;