]> Pileus Git - ~andy/linux/blobdiff - drivers/md/raid5.c
Merge tag 'jg-20061012-00' of git://electric-eye.fr.zoreil.com/home/romieu/linux...
[~andy/linux] / drivers / md / raid5.c
index 37e4ff661b6cce263148fe7f28d1a6be719b0244..e14f4578072006e3b464668d3c8500187df76453 100644 (file)
@@ -1105,7 +1105,7 @@ static void compute_parity6(struct stripe_head *sh, int method)
                                if (test_and_clear_bit(R5_Overlap, &sh->dev[i].flags))
                                        wake_up(&conf->wait_for_overlap);
 
-                               if (sh->dev[i].written) BUG();
+                               BUG_ON(sh->dev[i].written);
                                sh->dev[i].written = chosen;
                        }
                break;