Skip to content

Commit

Permalink
raid5: fix build error, sector_t usage
Browse files Browse the repository at this point in the history
Change <sectors> from unsigned long long to sector_t.
This matches its source field.

  ERROR: "__udivdi3" [drivers/md/raid456.ko] undefined!

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Randy Dunlap authored and Linus Torvalds committed Apr 21, 2011
1 parent 83425ee commit d76c842
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/md/raid5.c
Original file line number Diff line number Diff line change
Expand Up @@ -5678,7 +5678,7 @@ static void raid5_quiesce(mddev_t *mddev, int state)
static void *raid45_takeover_raid0(mddev_t *mddev, int level)
{
struct raid0_private_data *raid0_priv = mddev->private;
unsigned long long sectors;
sector_t sectors;

/* for raid0 takeover only one zone is supported */
if (raid0_priv->nr_strip_zones > 1) {
Expand Down

0 comments on commit d76c842

Please sign in to comment.