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=-17.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable 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 9EE10C2B9F8 for ; Tue, 25 May 2021 08:08:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 828C661401 for ; Tue, 25 May 2021 08:08:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232106AbhEYIJj (ORCPT ); Tue, 25 May 2021 04:09:39 -0400 Received: from mx2.suse.de ([195.135.220.15]:60656 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231947AbhEYIJH (ORCPT ); Tue, 25 May 2021 04:09:07 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1621929850; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=C480wFYuyMOjFSQyTKDRSRXds+ZLVDO5E1tUMdJxUt4=; b=xhE1T+Cno8jWuBsiEl2sdfKLsT7McuoVcMzjwR57HTVMOtcHFNBGnzsUYMGrWaMnKq8xog SmghlYh9Gl940M3wDV+k+G2MjuVB+7kMX0Kpgx554C3Mh5l5/fX3OTTurMPxWNqyyrewe9 hMfwCFSY96LwEP2NNvy5miqhKeDNkAI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1621929850; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=C480wFYuyMOjFSQyTKDRSRXds+ZLVDO5E1tUMdJxUt4=; b=Xt1nrSXUUy05qzE6z8wXGM1BfTfpFvGIst+f7mMARjOU77Nj/4YJEkOTfh92Uayj0L5NMq bXQqutIGYITGhgCg== Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 01E89AE99; Tue, 25 May 2021 08:04:10 +0000 (UTC) Subject: Re: [PATCH 1/8] block: split __blkdev_get To: Christoph Hellwig , Jens Axboe , Song Liu Cc: Konrad Rzeszutek Wilk , =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= , Minchan Kim , Nitin Gupta , Stefan Haberland , Jan Hoeppner , linux-block@vger.kernel.org, linux-raid@vger.kernel.org, linux-s390@vger.kernel.org, linux-scsi@vger.kernel.org, Ming Lei References: <20210525061301.2242282-1-hch@lst.de> <20210525061301.2242282-2-hch@lst.de> From: Hannes Reinecke Message-ID: <80e5e5f9-463a-ce5c-460d-389e0589fb37@suse.de> Date: Tue, 25 May 2021 10:04:08 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 In-Reply-To: <20210525061301.2242282-2-hch@lst.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-raid@vger.kernel.org On 5/25/21 8:12 AM, Christoph Hellwig wrote: > Split __blkdev_get into one helper for the whole device, and one for > opening partitions. This removes the (bounded) recursion when opening > a partition. > > Signed-off-by: Christoph Hellwig > Reviewed-by: Ming Lei > --- > fs/block_dev.c | 118 ++++++++++++++++++++++++------------------------- > 1 file changed, 57 insertions(+), 61 deletions(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer