Whamcloud - gitweb
LU-4675 lfsck: new pattern flag for partially repaired file
[fs/lustre-release.git] / lustre / lov / lov_internal.h
index 52d1afd..134f512 100644 (file)
@@ -247,4 +247,15 @@ static inline struct lov_stripe_md *lsm_addref(struct lov_stripe_md *lsm)
        return lsm;
 }
 
+static inline bool lov_oinfo_is_dummy(const struct lov_oinfo *loi)
+{
+       if (unlikely(loi->loi_oi.oi.oi_id == 0 &&
+                    loi->loi_oi.oi.oi_seq == 0 &&
+                    loi->loi_ost_idx == 0 &&
+                    loi->loi_ost_gen == 0))
+               return true;
+
+       return false;
+}
+
 #endif