From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754609AbcCJJFX (ORCPT ); Thu, 10 Mar 2016 04:05:23 -0500 Received: from mx2.suse.de ([195.135.220.15]:49049 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754583AbcCJJFQ (ORCPT ); Thu, 10 Mar 2016 04:05:16 -0500 Date: Thu, 10 Mar 2016 10:05:13 +0100 From: Johannes Thumshirn To: NeilBrown Cc: Keith Busch , Maxim Levitsky , Vishal Verma , Jens Axboe , Dan Williams , Ross Zwisler , linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, linux-nvdimm@ml01.01.org Subject: Re: [PATCH 2/4] nvdimm/btt: don't allocate unused major device number Message-ID: <20160310090513.GO3464@c203.arch.suse.de> References: <20160309215702.20904.61407.stgit@noble> <20160309215928.20904.21111.stgit@noble> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20160309215928.20904.21111.stgit@noble> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 10, 2016 at 08:59:28AM +1100, NeilBrown wrote: > alloc_disk(0) does not require or use a ->major number, > all devices are allocated with a major of BLOCK_EXT_MAJOR. > > So don't allocate btt_major. > > Signed-off-by: NeilBrown Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumshirn@suse.de +49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21284 (AG Nürnberg) Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850