Whamcloud - gitweb
LU-1678 mdd: don't create LOV EA by going thru .lustre path
[fs/lustre-release.git] / lustre / mdd / mdd_internal.h
index e1a3169..fb1cd9a 100644 (file)
@@ -53,6 +53,7 @@
 #endif
 #include <lustre_fsfilt.h>
 #include <lustre/lustre_lfsck_user.h>
+#include <lustre_fid.h>
 
 #ifdef HAVE_QUOTA_SUPPORT
 /* quota stuff */
@@ -585,6 +586,11 @@ static inline const struct lu_fid *mdo2fid(const struct mdd_object *obj)
         return lu_object_fid(&obj->mod_obj.mo_lu);
 }
 
+static inline int mdd_object_obf(const struct mdd_object *obj)
+{
+       return lu_fid_eq(mdo2fid(obj), &LU_OBF_FID);
+}
+
 static inline cfs_umode_t mdd_object_type(const struct mdd_object *obj)
 {
         return lu_object_attr(&obj->mod_obj.mo_lu);