aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/md.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index ef3ad99562c1..65fab74ad737 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -847,7 +847,7 @@ static int super_1_load(mdk_rdev_t *rdev, mdk_rdev_t *refdev, int minor_version)
847 case 0: 847 case 0:
848 sb_offset = rdev->bdev->bd_inode->i_size >> 9; 848 sb_offset = rdev->bdev->bd_inode->i_size >> 9;
849 sb_offset -= 8*2; 849 sb_offset -= 8*2;
850 sb_offset &= ~(4*2-1); 850 sb_offset &= ~(sector_t)(4*2-1);
851 /* convert from sectors to K */ 851 /* convert from sectors to K */
852 sb_offset /= 2; 852 sb_offset /= 2;
853 break; 853 break;