PATCH - md 16 of 22 - Next small step to improved mddev management.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





md_ioctl doesn't need to mddev_find, as the mddev must
be in the bd_inode->u.generic_ip.  This means we don't need
to mddev_put either.



 ----------- Diffstat output ------------
 ./drivers/md/md.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

--- ./drivers/md/md.c	2002/06/18 04:53:10	1.15
+++ ./drivers/md/md.c	2002/06/18 04:56:12	1.16
@@ -2490,10 +2490,10 @@
 	 * Commands creating/starting a new array:
 	 */
 
-	mddev = mddev_find(minor);
+	mddev = inode->i_bdev->bd_inode->u.generic_ip;
 
 	if (!mddev) {
-		err = -ENOMEM;
+		BUG();
 		goto abort;
 	}
 
@@ -2679,7 +2679,6 @@
 done_unlock:
 abort_unlock:
 	unlock_mddev(mddev);
-	mddev_put(mddev);
 
 	return err;
 done:
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux