From patchwork Tue Jul 5 15:55:09 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonthan Brassow X-Patchwork-Id: 945812 X-Patchwork-Delegate: agk@redhat.com Received: from mx4-phx2.redhat.com (mx4-phx2.redhat.com [209.132.183.25]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p65FvdvR016522 for ; Tue, 5 Jul 2011 15:58:05 GMT Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx4-phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p65FtHFT008908; Tue, 5 Jul 2011 11:55:18 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p65FtGcQ016695 for ; Tue, 5 Jul 2011 11:55:16 -0400 Received: from [10.0.2.15] (vpn-8-209.rdu.redhat.com [10.11.8.209]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p65FtA8G030784 for ; Tue, 5 Jul 2011 11:55:10 -0400 From: Jonathan Brassow To: dm-devel@redhat.com Organization: Red Hat, Inc Date: Tue, 05 Jul 2011 10:55:09 -0500 Message-ID: <1309881309.19763.6.camel@f14.redhat.com> Mime-Version: 1.0 X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-loop: dm-devel@redhat.com Subject: [dm-devel] [PATCH 8 of 7]: DM RAID 'failed_devices' should be 64-bit X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk Reply-To: device-mapper development List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Tue, 05 Jul 2011 15:58:05 +0000 (UTC) I have two more patches to add to the original series of 7 patches ([PATCH 0 OF 7] DM RAID updates). These two should be added to the end of the series. brassow Use 64-bit variable for 'failed_devices'. 'failed_devices' is a 64-bit field in the superblock. The corresponding function local variable must also be 64-bit. Signed-off-by: Jonathan Brassow --- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel Index: linux-2.6/drivers/md/dm-raid.c =================================================================== --- linux-2.6.orig/drivers/md/dm-raid.c +++ linux-2.6/drivers/md/dm-raid.c @@ -712,7 +712,7 @@ static int super_init_validation(mddev_t { struct raid_set *rs = container_of(mddev, struct raid_set, md); uint64_t ev1; - uint32_t failed_devices; + uint64_t failed_devices; struct dm_raid_superblock *sb; uint32_t new_devs = 0; uint32_t rebuilds = 0;