|
@@ -41,7 +41,7 @@ static long __validate_layout(struct ceph_mds_client *mdsc,
|
|
/* validate striping parameters */
|
|
/* validate striping parameters */
|
|
if ((l->object_size & ~PAGE_MASK) ||
|
|
if ((l->object_size & ~PAGE_MASK) ||
|
|
(l->stripe_unit & ~PAGE_MASK) ||
|
|
(l->stripe_unit & ~PAGE_MASK) ||
|
|
- (l->stripe_unit != 0 &&
|
|
|
|
|
|
+ ((unsigned)l->stripe_unit != 0 &&
|
|
((unsigned)l->object_size % (unsigned)l->stripe_unit)))
|
|
((unsigned)l->object_size % (unsigned)l->stripe_unit)))
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|