]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
[PATCH] tidy "md: check bio address after mapping through partitions"
authorAndrew Morton <akpm@osdl.org>
Fri, 3 Nov 2006 06:06:56 +0000 (22:06 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 3 Nov 2006 20:27:55 +0000 (12:27 -0800)
Neil's xterms are too wide.

Cc: Neil Brown <neilb@cse.unsw.edu.au>
Cc: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
block/ll_rw_blk.c

index c7b1dac8bee91a6bae5a91981af92378d4a280a8..9eaee66405353b6705c438c5aa8a5e9db7776f90 100644 (file)
@@ -3075,11 +3075,12 @@ end_io:
                if (maxsector) {
                        sector_t sector = bio->bi_sector;
 
-                       if (maxsector < nr_sectors || maxsector - nr_sectors < sector) {
+                       if (maxsector < nr_sectors ||
+                                       maxsector - nr_sectors < sector) {
                                /*
-                                * This may well happen - partitions are not checked
-                                * to make sure they are within the size of the
-                                * whole device.
+                                * This may well happen - partitions are not
+                                * checked to make sure they are within the size
+                                * of the whole device.
                                 */
                                handle_bad_sector(bio);
                                goto end_io;