Whamcloud - gitweb
LU-3285 mdc: implement own mdc_io_fsync_start()
[fs/lustre-release.git] / lustre / osc / osc_io.c
index e959ae0..99733f3 100644 (file)
@@ -755,8 +755,8 @@ int osc_io_write_start(const struct lu_env *env,
 }
 EXPORT_SYMBOL(osc_io_write_start);
 
-static int osc_fsync_ost(const struct lu_env *env, struct osc_object *obj,
-                        struct cl_fsync_io *fio)
+int osc_fsync_ost(const struct lu_env *env, struct osc_object *obj,
+                 struct cl_fsync_io *fio)
 {
        struct osc_io    *oio   = osc_env_io(env);
        struct obdo      *oa    = &oio->oi_oa;
@@ -781,6 +781,7 @@ static int osc_fsync_ost(const struct lu_env *env, struct osc_object *obj,
        rc = osc_sync_base(obj, oa, osc_async_upcall, cbargs, PTLRPCD_SET);
        RETURN(rc);
 }
+EXPORT_SYMBOL(osc_fsync_ost);
 
 int osc_io_fsync_start(const struct lu_env *env,
                       const struct cl_io_slice *slice)
@@ -821,7 +822,6 @@ int osc_io_fsync_start(const struct lu_env *env,
 
        RETURN(result);
 }
-EXPORT_SYMBOL(osc_io_fsync_start);
 
 void osc_io_fsync_end(const struct lu_env *env,
                      const struct cl_io_slice *slice)