From patchwork Fri Jun 15 21:55:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 10467727 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 1FCAB600F4 for ; Fri, 15 Jun 2018 21:55:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0F84628E63 for ; Fri, 15 Jun 2018 21:55:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0418C28EA2; Fri, 15 Jun 2018 21:55:26 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID 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 98C6C28E63 for ; Fri, 15 Jun 2018 21:55:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756510AbeFOVzX (ORCPT ); Fri, 15 Jun 2018 17:55:23 -0400 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:27179 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756597AbeFOVzW (ORCPT ); Fri, 15 Jun 2018 17:55:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1529099723; x=1560635723; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=lIayQfMBpFCFl7LMX1PQ9HgooDGRnqQ5erIvsbYjd88=; b=WywZI8+yWjW0sNr52lySfB4uS5ClHoEIdD3A63I2Xhgazk+z0NyHgrLx feUviiMD3/ROK9e6h9iDxy5oBw6wp+vFVO09lVkw7mX0hEfWDVVREObWz wEfiyiSSxgbEzEurEGYvti6l+75idgrld0PwWnMmDe5Le/9a5gzerk4pS 4uaxujbRm9wFfZQMso/tqIWrJr7lWpgkDVXOW/HvkcOIOFWc8VVz/NoO8 Bd9QcyW9FDYjF+o70ij3+if1/UL2/elUmikiRL9AzaXk1AP13eyLzPU59 BeAO2ghk1XMTu/LDRdZmMOZTd6Sp0KgVSBpx/x+10lpZHVY9k/XVBuHKQ A==; X-IronPort-AV: E=Sophos;i="5.51,228,1526313600"; d="scan'208";a="80546945" Received: from h199-255-45-14.hgst.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 16 Jun 2018 05:55:23 +0800 Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep01.wdc.com with ESMTP; 15 Jun 2018 14:45:30 -0700 Received: from thinkpad-bart.sdcorp.global.sandisk.com ([10.111.67.248]) by uls-op-cesaip01.wdc.com with ESMTP; 15 Jun 2018 14:55:23 -0700 From: Bart Van Assche To: Jens Axboe Cc: linux-block@vger.kernel.org, Christoph Hellwig , Bart Van Assche , Matias Bjorling Subject: [PATCH 3/5] block: Remove bdev_nr_zones() Date: Fri, 15 Jun 2018 14:55:19 -0700 Message-Id: <20180615215521.27435-4-bart.vanassche@wdc.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180615215521.27435-1-bart.vanassche@wdc.com> References: <20180615215521.27435-1-bart.vanassche@wdc.com> 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 Remove this function since it has no callers. This function was introduced in commit 6cc77e9cb080 ("block: introduce zoned block devices zone write locking"). Signed-off-by: Bart Van Assche Reviewed-by: Damien Le Moal Cc: Christoph Hellwig Cc: Matias Bjorling --- include/linux/blkdev.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index a8b98eadebb2..05cd0c8e5735 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -1648,15 +1648,6 @@ static inline unsigned int bdev_zone_sectors(struct block_device *bdev) return 0; } -static inline unsigned int bdev_nr_zones(struct block_device *bdev) -{ - struct request_queue *q = bdev_get_queue(bdev); - - if (q) - return blk_queue_nr_zones(q); - return 0; -} - static inline int queue_dma_alignment(struct request_queue *q) { return q ? q->dma_alignment : 511;