From mboxrd@z Thu Jan 1 00:00:00 1970 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=-5.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, 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 9D978C47420 for ; Wed, 23 Sep 2020 16:44:03 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 22CA120791 for ; Wed, 23 Sep 2020 16:44:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=kernel-dk.20150623.gappssmtp.com header.i=@kernel-dk.20150623.gappssmtp.com header.b="wo1HxCm5" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 22CA120791 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 741A56B006E; Wed, 23 Sep 2020 12:44:02 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6F13D6B0071; Wed, 23 Sep 2020 12:44:02 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 605DC6B0072; Wed, 23 Sep 2020 12:44:02 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0095.hostedemail.com [216.40.44.95]) by kanga.kvack.org (Postfix) with ESMTP id 47B356B006E for ; Wed, 23 Sep 2020 12:44:02 -0400 (EDT) Received: from smtpin04.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id E143318084786 for ; Wed, 23 Sep 2020 16:44:01 +0000 (UTC) X-FDA: 77294898282.04.walk41_5110c0b27157 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin04.hostedemail.com (Postfix) with ESMTP id BA8088000D08 for ; Wed, 23 Sep 2020 16:44:01 +0000 (UTC) X-HE-Tag: walk41_5110c0b27157 X-Filterd-Recvd-Size: 4313 Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) by imf41.hostedemail.com (Postfix) with ESMTP for ; Wed, 23 Sep 2020 16:44:00 +0000 (UTC) Received: by mail-pf1-f194.google.com with SMTP id z19so8779pfn.8 for ; Wed, 23 Sep 2020 09:44:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=9kKVBm2QDcEhoI7VNH0u9uwqsgFbX84K7to4q+EvAF8=; b=wo1HxCm5bKIVa9so0OH72jUPeuxpy0gBmSztrnAMX5SSm8gqDsd/uDbJD7n0nTY7Hv CKJoObg/EBB1JCvStmCq+2DKeNopjuTxhY6T7yv5TlzOVOSgvtBEy4neG07it4ARoA4J WHOi+7obrEMIUDmzT3kBBEHLDf0ZbrbNxMoUwtAnQnNZ4qwV/A1Mq5PJhKVbgpJ/Rod5 V4wdCnvNPJU0KSWHIs05KbU5DxoLhNDG93YaWxwBm6g7XccmnyHw+ixRtSpxeaSGMhwd mx1/GOsS6pG7kDo6kprXjUbJ/6H+1rzHGTrQ7trw2dp1Uk7jyzCH8F6put7clvS8xmh3 DueQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=9kKVBm2QDcEhoI7VNH0u9uwqsgFbX84K7to4q+EvAF8=; b=QG4mRWzOp6Ikm9FDhBtUudtZSrEltf0zxaee9isWBG6d1S4HLB9HX8QqaawJt4OecP NtQ2GIAsyXfm4Wd5+Z4BIgHaM+Wt3EVwsXCy55v0DpbGic4j0KKWeFmoj1sp9Ig/MUua VaW0NBgyoX8EV8nPaezsuqkydpuOPMYDBewKvbAhyeMkcR4KDaosU85VGBKSMZaPdIbS GYPVTX4/484JuW9Fqu2d+waA1UR+guyUYP4JQ2ZxGd8eN3VThKOQoBlyglclxLJ+ZiGI 36IbJkuxQCymav8xFSHQA9eVtmEAwOVT4vgdryNuPmcMKAQ5Y2sGbbhjjhEqJfKp7z0v ERaw== X-Gm-Message-State: AOAM530iOEMGqyKuqgbksamAOj6FIK9OIxS/OPNrVyZjkuBfFBRmWpk0 OKZ6WOA49CcmyiZsKdTEeZE1hQ== X-Google-Smtp-Source: ABdhPJzQnxjNRw3M1n4lJU3pDIkemY3ZCQKnOQ7VywhFrMYRm0itMgYfj3gWdktm3tes58COiW8SXA== X-Received: by 2002:a62:2b52:0:b029:142:2501:39e9 with SMTP id r79-20020a622b520000b0290142250139e9mr746426pfr.56.1600879439083; Wed, 23 Sep 2020 09:43:59 -0700 (PDT) Received: from [192.168.1.30] ([65.144.74.34]) by smtp.gmail.com with ESMTPSA id q190sm241046pfq.99.2020.09.23.09.43.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 23 Sep 2020 09:43:58 -0700 (PDT) Subject: Re: remove blkdev_get as a public API v2 To: Christoph Hellwig Cc: Josef Bacik , Minchan Kim , Stefan Haberland , Jan Hoeppner , Joseph Qi , "Rafael J. Wysocki" , Pavel Machek , Len Brown , Andrew Morton , linux-kernel@vger.kernel.org, nbd@other.debian.org, linux-ide@vger.kernel.org, linux-s390@vger.kernel.org, linux-fsdevel@vger.kernel.org, ocfs2-devel@oss.oracle.com, linux-pm@vger.kernel.org, linux-mm@kvack.org, linux-block@vger.kernel.org References: <20200921071958.307589-1-hch@lst.de> From: Jens Axboe Message-ID: Date: Wed, 23 Sep 2020 10:43:57 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200921071958.307589-1-hch@lst.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On 9/21/20 1:19 AM, Christoph Hellwig wrote: > Hi Jens, > > this series removes blkdev_get as a public API, leaving it as just an > implementation detail of blkdev_get_by_path and blkdev_get_by_dev. The > reason for that is that blkdev_get is a very confusing API that requires > a struct block_device to be fed in, but then actually consumes the > reference. And it turns out just using the two above mentioned APIs > actually significantly simplifies the code as well. > > Changes since v1: > - fix a mismerged that left a stray bdget_disk around > - factour the partition scan at registration time code into a new > helper. Applied for 5.10, thanks. -- Jens Axboe