X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fosp%2Fosp_md_object.c;h=af494560aa64f6ef48c9072322ab250483f045b7;hb=a96be7018d90585dce16ce4b126485ce41629cd2;hp=6738763690d790c1d1abf9df7808541023fc8631;hpb=7e0e87e6f2dbd04e6fb94123f453ad8f2806dc8b;p=fs%2Flustre-release.git diff --git a/lustre/osp/osp_md_object.c b/lustre/osp/osp_md_object.c index 6738763..af49456 100644 --- a/lustre/osp/osp_md_object.c +++ b/lustre/osp/osp_md_object.c @@ -956,35 +956,6 @@ int osp_md_declare_object_destroy(const struct lu_env *env, } /** - * Interpreter call for object destroy - * - * Object destroy interpreter, which will be called after destroying - * the remote object to set flags and status. - * - * \param[in] env execution environment - * \param[in] reply update reply - * \param[in] req ptlrpc update request for destroying object - * \param[in] obj object to be destroyed - * \param[in] data data used in this function. - * \param[in] index index(position) of destroy update in the whole - * updates - * \param[in] rc update result on the remote MDT. - * - * \retval only return 0 for now - */ -static int osp_md_object_destroy_interpreter(const struct lu_env *env, - struct object_update_reply *reply, - struct ptlrpc_request *req, - struct osp_object *obj, - void *data, int index, int rc) -{ - /* not needed in cache any more */ - set_bit(LU_OBJECT_HEARD_BANSHEE, - &obj->opo_obj.do_lu.lo_header->loh_flags); - return 0; -} - -/** * Implement OSP layer dt_object_operations::do_destroy() interface. * * Pack the destroy update into the RPC buffer, which will be sent @@ -1019,8 +990,10 @@ int osp_md_object_destroy(const struct lu_env *env, struct dt_object *dt, if (rc != 0) RETURN(rc); + set_bit(LU_OBJECT_HEARD_BANSHEE, &dt->do_lu.lo_header->loh_flags); rc = osp_insert_update_callback(env, update, dt2osp_obj(dt), NULL, - osp_md_object_destroy_interpreter); + NULL); + RETURN(rc); }