Commit d76c8420 authored by Randy Dunlap's avatar Randy Dunlap Committed by Linus Torvalds

raid5: fix build error, sector_t usage

Change <sectors> from unsigned long long to sector_t.
This matches its source field.

  ERROR: "__udivdi3" [drivers/md/raid456.ko] undefined!
Signed-off-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 83425eee
...@@ -5678,7 +5678,7 @@ static void raid5_quiesce(mddev_t *mddev, int state) ...@@ -5678,7 +5678,7 @@ static void raid5_quiesce(mddev_t *mddev, int state)
static void *raid45_takeover_raid0(mddev_t *mddev, int level) static void *raid45_takeover_raid0(mddev_t *mddev, int level)
{ {
struct raid0_private_data *raid0_priv = mddev->private; struct raid0_private_data *raid0_priv = mddev->private;
unsigned long long sectors; sector_t sectors;
/* for raid0 takeover only one zone is supported */ /* for raid0 takeover only one zone is supported */
if (raid0_priv->nr_strip_zones > 1) { if (raid0_priv->nr_strip_zones > 1) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment