@@ -354,14 +354,14 @@ static inline struct lov_stripe_md_entry *lov_lse(struct lov_object *lov, int i)
static inline unsigned int lov_flr_state(const struct lov_object *lov)
{
if (lov->lo_type != LLT_COMP)
- return LCM_FL_NOT_FLR;
+ return LCM_FL_NONE;
return lov->u.composite.lo_flags & LCM_FL_FLR_MASK;
}
static inline bool lov_is_flr(const struct lov_object *lov)
{
- return lov_flr_state(lov) != LCM_FL_NOT_FLR;
+ return lov_flr_state(lov) != LCM_FL_NONE;
}
static inline struct lov_layout_entry *lov_entry(struct lov_object *lov, int i)
@@ -629,7 +629,7 @@ static int lov_init_composite(const struct lu_env *env, struct lov_device *dev,
comp->lo_entry_count = lsm->lsm_entry_count;
comp->lo_preferred_mirror = -1;
- if (equi(flr_state == LCM_FL_NOT_FLR, comp->lo_mirror_count > 1))
+ if (equi(flr_state == LCM_FL_NONE, comp->lo_mirror_count > 1))
return -EINVAL;
comp->lo_mirrors = kcalloc(comp->lo_mirror_count,
@@ -669,7 +669,7 @@ static int lov_init_composite(const struct lu_env *env, struct lov_device *dev,
lle->lle_extent = &lle->lle_lsme->lsme_extent;
lle->lle_valid = !(lle->lle_lsme->lsme_flags & LCME_FL_STALE);
- if (flr_state != LCM_FL_NOT_FLR)
+ if (flr_state != LCM_FL_NONE)
mirror_id = mirror_id_of(lle->lle_lsme->lsme_id);
lre = &comp->lo_mirrors[j];
@@ -1542,8 +1542,8 @@ void lustre_assert_wire_constants(void)
LASSERTF((int)sizeof(((struct lov_comp_md_v1 *)0)->lcm_entries[0]) == 48, "found %lld\n",
(long long)(int)sizeof(((struct lov_comp_md_v1 *)0)->lcm_entries[0]));
BUILD_BUG_ON(LOV_MAGIC_COMP_V1 != (0x0BD60000 | 0x0BD0));
- LASSERTF(LCM_FL_NOT_FLR == 0, "found %lld\n",
- (long long)LCM_FL_NOT_FLR);
+ LASSERTF(LCM_FL_NONE == 0, "found %lld\n",
+ (long long)LCM_FL_NONE);
LASSERTF(LCM_FL_RDONLY == 1, "found %lld\n",
(long long)LCM_FL_RDONLY);
LASSERTF(LCM_FL_WRITE_PENDING == 2, "found %lld\n",
@@ -530,7 +530,7 @@ static inline __u16 mirror_id_of(__u32 id)
*/
enum lov_comp_md_flags {
/* the least 2 bits are used by FLR to record file state */
- LCM_FL_NOT_FLR = 0,
+ LCM_FL_NONE = 0,
LCM_FL_RDONLY = 1,
LCM_FL_WRITE_PENDING = 2,
LCM_FL_SYNC_PENDING = 3,