From b31bddb0af5ae26b92432730e8b3a35166b2fd9c Mon Sep 17 00:00:00 2001 From: tappro Date: Sun, 13 Aug 2006 21:52:23 +0000 Subject: [PATCH] - fix issue with checking the result of mds_log_op_unlink() call --- lustre/mdd/mdd_lov.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lustre/mdd/mdd_lov.c b/lustre/mdd/mdd_lov.c index d7b29a4..5ff6373 100644 --- a/lustre/mdd/mdd_lov.c +++ b/lustre/mdd/mdd_lov.c @@ -571,12 +571,14 @@ 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)) { + 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); -- 1.8.3.1