* [PATCH 7/8] cciss: change cciss_open for consistency
@ 2006-11-02 15:04 Mike Miller (OS Dev)
0 siblings, 0 replies; only message in thread
From: Mike Miller (OS Dev) @ 2006-11-02 15:04 UTC (permalink / raw)
To: akpm, jens.axboe; +Cc: linux-kernel, linux-scsi
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 <mike.miller@hp.com>
cciss.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
------------------------------------------------------------------------------------------
diff -urNp linux-2.6-p00006/drivers/block/cciss.c linux-2.6/drivers/block/cciss.c
--- linux-2.6-p00006/drivers/block/cciss.c 2006-10-31 15:48:46.000000000 -0600
+++ linux-2.6/drivers/block/cciss.c 2006-10-31 15:57:39.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) {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-11-02 15:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-02 15:04 [PATCH 7/8] cciss: change cciss_open for consistency Mike Miller (OS Dev)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®