Whamcloud - gitweb
LU-7660 dne: support fs default stripe
[fs/lustre-release.git] / lustre / mdd / mdd_internal.h
index 4f99f02..60094ca 100644 (file)
@@ -302,6 +302,7 @@ int mdd_changelog_ns_store(const struct lu_env *env, struct mdd_device *mdd,
                           const struct lu_name *tname,
                           const struct lu_name *sname,
                           struct thandle *handle);
                           const struct lu_name *tname,
                           const struct lu_name *sname,
                           struct thandle *handle);
+int mdd_invalidate(const struct lu_env *env, struct md_object *obj);
 int mdd_declare_object_create_internal(const struct lu_env *env,
                                       struct mdd_object *p,
                                       struct mdd_object *c,
 int mdd_declare_object_create_internal(const struct lu_env *env,
                                       struct mdd_object *p,
                                       struct mdd_object *c,
@@ -571,6 +572,12 @@ mdo_xattr_list(const struct lu_env *env, struct mdd_object *obj,
        return dt_xattr_list(env, next, buf);
 }
 
        return dt_xattr_list(env, next, buf);
 }
 
+static inline int
+mdo_invalidate(const struct lu_env *env, struct mdd_object *obj)
+{
+       return dt_invalidate(env, mdd_object_child(obj));
+}
+
 static inline
 int mdo_declare_index_insert(const struct lu_env *env, struct mdd_object *obj,
                             const struct lu_fid *fid, __u32 type,
 static inline
 int mdo_declare_index_insert(const struct lu_env *env, struct mdd_object *obj,
                             const struct lu_fid *fid, __u32 type,