From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753501AbWKFUW3 (ORCPT ); Mon, 6 Nov 2006 15:22:29 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753497AbWKFUW3 (ORCPT ); Mon, 6 Nov 2006 15:22:29 -0500 Received: from palrel13.hp.com ([156.153.255.238]:59833 "EHLO palrel13.hp.com") by vger.kernel.org with ESMTP id S1753501AbWKFUW2 (ORCPT ); Mon, 6 Nov 2006 15:22:28 -0500 Date: Mon, 6 Nov 2006 14:22:27 -0600 From: "Mike Miller (OS Dev)" To: akpm@osdl.org, jens.axboe@oracle.com Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org Subject: [PATCH 7/12] repost: cciss: change cciss_open for consistency Message-ID: <20061106202227.GG17847@beardog.cca.cpqcorp.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.9i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org PATCH 7/11 This patch changes our open to test for drv->heads like we do in other places in the driver. Mostly for consistency. Please consider this for inclusion. Thanks, mikem Signed-off-by: Mike Miller ------------------------------------------------------------------------------------------ --- drivers/block/cciss.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN drivers/block/cciss.c~cciss_open_fix_for_lx2619-rc4 drivers/block/cciss.c --- linux-2.6/drivers/block/cciss.c~cciss_open_fix_for_lx2619-rc4 2006-11-06 13:27:48.000000000 -0600 +++ linux-2.6-root/drivers/block/cciss.c 2006-11-06 13:27:48.000000000 -0600 @@ -494,7 +494,7 @@ static int cciss_open(struct inode *inod * but I'm already using way to many device nodes to claim another one * for "raw controller". */ - if (drv->nr_blocks == 0) { + if (drv->heads == 0) { if (iminor(inode) != 0) { /* not node 0? */ /* if not node 0 make sure it is a partition = 0 */ if (iminor(inode) & 0x0f) { _