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=-8.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham 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 4D4EBC64E75 for ; Tue, 24 Nov 2020 17:41:31 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id C263F2087C for ; Tue, 24 Nov 2020 17:41:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="jYivczMQ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C263F2087C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 1B7BE6B005D; Tue, 24 Nov 2020 12:41:30 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 1418A6B0070; Tue, 24 Nov 2020 12:41:30 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 008446B0071; Tue, 24 Nov 2020 12:41:29 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0203.hostedemail.com [216.40.44.203]) by kanga.kvack.org (Postfix) with ESMTP id D7D2F6B005D for ; Tue, 24 Nov 2020 12:41:29 -0500 (EST) Received: from smtpin25.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 9EFC5181AEF23 for ; Tue, 24 Nov 2020 17:41:29 +0000 (UTC) X-FDA: 77520028698.25.laugh07_150a4222736f Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin25.hostedemail.com (Postfix) with ESMTP id 5B6281804E3A8 for ; Tue, 24 Nov 2020 17:41:29 +0000 (UTC) X-HE-Tag: laugh07_150a4222736f X-Filterd-Recvd-Size: 3823 Received: from mail-qk1-f195.google.com (mail-qk1-f195.google.com [209.85.222.195]) by imf22.hostedemail.com (Postfix) with ESMTP for ; Tue, 24 Nov 2020 17:41:28 +0000 (UTC) Received: by mail-qk1-f195.google.com with SMTP id y197so21501915qkb.7 for ; Tue, 24 Nov 2020 09:41:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=4ibQynBLG5sCe4CZqYbUkQUaNNDbglWF2wLslYnfqek=; b=jYivczMQqsxh7yyiSCMC+J2uq1jjrgFqCn4zGdT7y8l1tR+lBZj0zWSEvbd0W8jl8w Gi4Cj5Zx4gKHsuI0fIL4rp4709gHxtA9wRWySVLNwDnlcHxfBP3hG6ecjPkRXqH0UxZp xk0pqka3Sqe63I6EZOHEKoOfA/4WJiEaugJWCMjne3X9nHRMXe7fYlZPuOXRYu6gUE1t VJ+e81XD/b5aNX2a+wyW4GmbUwrk6CKBJ/6iNXNyc9y/IvYXsxz32um6sHRBVWQzYyqm IRQIL0vettN12q9xzjv+kftrmu3uKde1tlzjzfXundOzi243rFxdMC5NVy5kvvEXsk4Q MK1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=4ibQynBLG5sCe4CZqYbUkQUaNNDbglWF2wLslYnfqek=; b=q2ZK9eeF2jEgbqiVkxVGIGPDWb8mW6W1dxxQP3PqLzqHh/ULQVpDfNRn/LjZXw8DRd JJp/4HGXg+IECV2M3rYVSHvS4DnAVGtZqQWvmb/wWZ82rBmABo3Rptw5eZoHwS8MTGtL t7eEFeWghwQc0t8v4d4W8+9vzIVamrzw5cNrwQMTI67c456r0FQwSalFYBoX4Q1kDIsD ujRsmgtwGSf/xz4bRPaMdVZcxI/OFYBtLwJgD1LMfOG2my+BsDlQxeyjALLpba9vOKqn 1cwKxFze4+nFWR8ggEiZWVzSM9wA/OADqYC2ty9qbgMjAtcBMpP05koXLN5urLFJRg7d uM1w== X-Gm-Message-State: AOAM531k7JpDZ990iKSG5g/RMPW3alcbW9L7/7GDgXI8jw5Ur0Uo7GTp wZohjfbRTTke4NkEDzJD4x4= X-Google-Smtp-Source: ABdhPJwbAXPcygkLKUFdmjuytzuRV0DzFXM5PwNCTshXeMizxUWtjVUL4UzMNPmTvdVp88+fUo1SSg== X-Received: by 2002:a37:8c41:: with SMTP id o62mr5500995qkd.240.1606239688196; Tue, 24 Nov 2020 09:41:28 -0800 (PST) Received: from localhost (dhcp-6c-ae-f6-dc-d8-61.cpe.echoes.net. [72.28.8.195]) by smtp.gmail.com with ESMTPSA id y3sm7003885qkl.110.2020.11.24.09.41.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2020 09:41:27 -0800 (PST) Date: Tue, 24 Nov 2020 12:41:05 -0500 From: Tejun Heo To: Christoph Hellwig Cc: Jens Axboe , Josef Bacik , Konrad Rzeszutek Wilk , Coly Li , Mike Snitzer , Greg Kroah-Hartman , Jan Kara , Johannes Thumshirn , dm-devel@redhat.com, Richard Weinberger , Jan Kara , linux-block@vger.kernel.org, xen-devel@lists.xenproject.org, linux-bcache@vger.kernel.org, linux-mtd@lists.infradead.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH 20/45] block: refactor __blkdev_put Message-ID: References: <20201124132751.3747337-1-hch@lst.de> <20201124132751.3747337-21-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201124132751.3747337-21-hch@lst.de> 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 Tue, Nov 24, 2020 at 02:27:26PM +0100, Christoph Hellwig wrote: > Reorder the code to have one big section for the last close, and to use > bdev_is_partition. > > Signed-off-by: Christoph Hellwig > Reviewed-by: Greg Kroah-Hartman > Reviewed-by: Jan Kara Acked-by: Tejun Heo -- tejun