patch-2.3.48 linux/include/linux/raid/md_k.h

Next file: linux/include/linux/smb_fs.h
Previous file: linux/include/linux/qnx4_fs.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.47/linux/include/linux/raid/md_k.h linux/include/linux/raid/md_k.h
@@ -75,6 +75,8 @@
 
 extern inline mddev_t * kdev_to_mddev (kdev_t dev)
 {
+	if (MAJOR(dev) != MD_MAJOR)
+		BUG();
         return mddev_map[MINOR(dev)].mddev;
 }
 
@@ -213,7 +215,7 @@
 	char *name;
 	int (*map)(mddev_t *mddev, kdev_t dev, kdev_t *rdev,
 		unsigned long *rsector, unsigned long size);
-	int (*make_request)(mddev_t *mddev, int rw, struct buffer_head * bh);
+	int (*make_request)(request_queue_t *q, mddev_t *mddev, int rw, struct buffer_head * bh);
 	void (*end_request)(struct buffer_head * bh, int uptodate);
 	int (*run)(mddev_t *mddev);
 	int (*stop)(mddev_t *mddev);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)