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 98B11C47088 for ; Tue, 25 May 2021 08:20:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7C862611C9 for ; Tue, 25 May 2021 08:20:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232288AbhEYIW1 (ORCPT ); Tue, 25 May 2021 04:22:27 -0400 Received: from mx2.suse.de ([195.135.220.15]:35212 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232258AbhEYIWZ (ORCPT ); Tue, 25 May 2021 04:22:25 -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=1621930855; 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=F1yard1mPNiEefr+18EInPlocPXGrJyVMYK7xdf2Vho=; b=yM//tlBEc6hJC36IZ0bD0aYTR/6c8DPnhLk7JgdRTP+f/Rk+ElgK34V3+YQKvbLHjc6Zpb 5jtuGH8P8rnopnxEAW++q4KpmMPbMA6AdxoA9hLjliKCHTDLJsTwnaRPn/vd9a53EXy+JY r1Bd0fCPEk38pWY7y4Md/wxMe57IlMM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1621930855; 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=F1yard1mPNiEefr+18EInPlocPXGrJyVMYK7xdf2Vho=; b=thKZ/MEin14gvNRtIrZtrKXFMhsuM0xAY5s/ZrudoGupPsxGplarWaHt1IUgOzl2v/W+RJ /Yc88pfOPoEybpDg== Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id B13A8AFEC; Tue, 25 May 2021 08:20:54 +0000 (UTC) Subject: Re: [PATCH 6/8] block: move bd_part_count to struct gendisk 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 References: <20210525061301.2242282-1-hch@lst.de> <20210525061301.2242282-7-hch@lst.de> From: Hannes Reinecke Message-ID: <10c3bfb5-ec38-88da-3b1c-7e96a6c5be4f@suse.de> Date: Tue, 25 May 2021 10:20:52 +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-7-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-scsi@vger.kernel.org On 5/25/21 8:12 AM, Christoph Hellwig wrote: > The bd_part_count value only makes sense for whole devices, so move it > to struct gendisk and give it a more descriptive name. > > Signed-off-by: Christoph Hellwig > --- > block/ioctl.c | 2 +- > fs/block_dev.c | 6 +++--- > include/linux/blk_types.h | 3 --- > include/linux/genhd.h | 1 + > 4 files changed, 5 insertions(+), 7 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