entry = &lo->ldo_comp_entries[comp_idx];
if (lod_comp_inited(entry))
return entry->llc_stripe_count;
- if (entry->llc_stripe_count == (__u16)-1)
+ if (entry->llc_stripe_count == LOV_ALL_STRIPES)
return lod_get_stripe_count_plain(lod, lo,
entry->llc_stripe_count,
entry->llc_pattern &
(lod_comp_inited(lod_comp) ||
lod_comp->llc_extent.e_start <
lod_comp->llc_extent.e_end) &&
- lod_comp->llc_stripe_count != (__u16)-1 &&
- ext->e_end != (__u64)-1 &&
+ lod_comp->llc_stripe_count != LOV_ALL_STRIPES &&
+ ext->e_end != OBD_OBJECT_EOF &&
(__u64)(lod_comp->llc_stripe_count *
lod_comp->llc_stripe_size) >
(ext->e_end - ext->e_start))
(lod_comp_inited(lod_comp) ||
lod_comp->llc_extent.e_start <
lod_comp->llc_extent.e_end) &&
- lod_comp->llc_stripe_count != (__u16)-1 &&
- lod_comp->llc_extent.e_end != (__u64)-1 &&
+ lod_comp->llc_stripe_count != LOV_ALL_STRIPES &&
+ lod_comp->llc_extent.e_end != OBD_OBJECT_EOF &&
(__u64)lod_comp->llc_stripe_count *
lod_comp->llc_stripe_size >
(lod_comp->llc_extent.e_end - lod_comp->llc_extent.e_start))
*/
if (lo->ldo_is_composite &&
!(lod_comp->llc_flags & LCME_FL_EXTENSION) &&
- lod_comp->llc_stripe_count != (__u16)-1 &&
+ lod_comp->llc_stripe_count != LOV_ALL_STRIPES &&
(lod_comp_inited(lod_comp) ||
lod_comp->llc_extent.e_start <
lod_comp->llc_extent.e_end) &&
- lod_comp->llc_extent.e_end != (__u64)-1 &&
+ lod_comp->llc_extent.e_end != OBD_OBJECT_EOF &&
lod_comp->llc_stripe_count * lod_comp->llc_stripe_size >
(lod_comp->llc_extent.e_end - lod_comp->llc_extent.e_start))
lod_comp->llc_stripe_count =