From: wangdi Date: Mon, 14 Aug 2006 00:32:29 +0000 (+0000) Subject: Branch: b_new_cmd X-Git-Tag: v1_8_0_110~486^2~1189 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=843a36cec9925527db3f8b9908f1bd4bd6b42d28;p=fs%2Flustre-release.git Branch: b_new_cmd should check mds_log_op_unlink > 0 in mdd_unlink_log --- diff --git a/lustre/mdd/mdd_lov.c b/lustre/mdd/mdd_lov.c index 5ff6373..cc31a5c 100644 --- a/lustre/mdd/mdd_lov.c +++ b/lustre/mdd/mdd_lov.c @@ -571,14 +571,13 @@ int mdd_unlink_log(const struct lu_context *ctxt, struct mdd_device *mdd, struct obd_device *obd = mdd2_obd(mdd); if (mds_log_op_unlink(obd, NULL, ma->ma_lmm, ma->ma_lmm_size, - ma->ma_cookie, ma->ma_cookie_size) == 0) { + ma->ma_cookie, ma->ma_cookie_size) > 0) { ma->ma_valid |= MA_COOKIE; } return 0; } -int mdd_lov_setattr_async(const struct lu_context *ctxt, - struct mdd_object *obj, +int mdd_lov_setattr_async(const struct lu_context *ctxt, struct mdd_object *obj, struct lov_mds_md *lmm, int lmm_size) { struct mdd_device *mdd = mdo2mdd(&obj->mod_obj);