X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fosc%2Fosc_io.c;h=5fe14d0f2e7e365ed9fa565fc81a292c64ec03ff;hb=163870abfb7c;hp=70edcfba8ddbecf824e4cf21989273236ad926ac;hpb=dfeb63f2ee3701ef731ffcea3f79fb70d513a9dc;p=fs%2Flustre-release.git diff --git a/lustre/osc/osc_io.c b/lustre/osc/osc_io.c index 70edcfb..5fe14d0 100644 --- a/lustre/osc/osc_io.c +++ b/lustre/osc/osc_io.c @@ -553,8 +553,8 @@ static void osc_trunc_check(const struct lu_env *env, struct cl_io *io, * if server doesn't support fallocate punch, we also need these data to be * flushed first to prevent re-ordering with the punch */ -static int osc_punch_start(const struct lu_env *env, struct cl_io *io, - struct cl_object *obj) +int osc_punch_start(const struct lu_env *env, struct cl_io *io, + struct cl_object *obj) { struct osc_object *osc = cl2osc(obj); pgoff_t pg_start = cl_index(obj, io->u.ci_setattr.sa_falloc_offset); @@ -570,6 +570,7 @@ static int osc_punch_start(const struct lu_env *env, struct cl_io *io, osc); RETURN(0); } +EXPORT_SYMBOL(osc_punch_start); static int osc_io_setattr_start(const struct lu_env *env, const struct cl_io_slice *slice)