Whamcloud - gitweb
LU-10018 protocol: MDT as a statfs proxy
[fs/lustre-release.git] / lustre / include / md_object.h
index 0b1ae1f..cdfb03b 100644 (file)
@@ -648,6 +648,14 @@ static inline int mdo_unlink(const struct lu_env *env,
        return p->mo_dir_ops->mdo_unlink(env, p, c, lname, ma, no_name);
 }
 
+static inline int mdo_statfs(const struct lu_env *env,
+                            struct md_device *m,
+                            struct obd_statfs *sfs)
+{
+       LASSERT(m->md_ops->mdo_statfs);
+       return m->md_ops->mdo_statfs(env, m, sfs);
+}
+
 /**
  * Used in MDD/OUT layer for object lock rule
  **/