|
@@ -733,7 +733,7 @@ static bool stripe_can_batch(struct stripe_head *sh)
|
|
|
{
|
|
|
struct r5conf *conf = sh->raid_conf;
|
|
|
|
|
|
- if (conf->log || raid5_has_ppl(conf))
|
|
|
+ if (raid5_has_log(conf) || raid5_has_ppl(conf))
|
|
|
return false;
|
|
|
return test_bit(STRIPE_BATCH_READY, &sh->state) &&
|
|
|
!test_bit(STRIPE_BITMAP_PENDING, &sh->state) &&
|
|
@@ -7737,7 +7737,7 @@ static int raid5_resize(struct mddev *mddev, sector_t sectors)
|
|
|
sector_t newsize;
|
|
|
struct r5conf *conf = mddev->private;
|
|
|
|
|
|
- if (conf->log || raid5_has_ppl(conf))
|
|
|
+ if (raid5_has_log(conf) || raid5_has_ppl(conf))
|
|
|
return -EINVAL;
|
|
|
sectors &= ~((sector_t)conf->chunk_sectors - 1);
|
|
|
newsize = raid5_size(mddev, sectors, mddev->raid_disks);
|
|
@@ -7788,7 +7788,7 @@ static int check_reshape(struct mddev *mddev)
|
|
|
{
|
|
|
struct r5conf *conf = mddev->private;
|
|
|
|
|
|
- if (conf->log || raid5_has_ppl(conf))
|
|
|
+ if (raid5_has_log(conf) || raid5_has_ppl(conf))
|
|
|
return -EINVAL;
|
|
|
if (mddev->delta_disks == 0 &&
|
|
|
mddev->new_layout == mddev->layout &&
|