patch-pre2.0.7 linux/drivers/block/ll_rw_blk.c

Next file: linux/drivers/block/md.c
Previous file: linux/drivers/block/linear.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file pre2.0.6/linux/drivers/block/ll_rw_blk.c linux/drivers/block/ll_rw_blk.c
@@ -489,8 +489,11 @@
 #ifdef CONFIG_BLK_DEV_MD
 		if (major==MD_MAJOR &&
 		    md_map (MINOR(bh[i]->b_dev), &bh[i]->b_rdev,
-			    &bh[i]->b_rsector, bh[i]->b_size >> 9))
+			    &bh[i]->b_rsector, bh[i]->b_size >> 9)) {
+		        printk (KERN_ERR
+				"Bad md_map in ll_rw_block\n");
 		        goto sorry;
+		}
 #endif
 	}
 
@@ -561,7 +564,7 @@
 			    md_map (MINOR(dev), &rdev,
 				    &rsector, buffersize >> 9)) {
 			        printk (KERN_ERR
-                                        "Bad md_map in ll_rw_page_size\n");
+                                        "Bad md_map in ll_rw_swap_file\n");
 				return;
 			}
 #endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this