From: wangdi Date: Tue, 26 Sep 2006 07:23:41 +0000 (+0000) Subject: Branch: b_new_cmd X-Git-Tag: v1_8_0_110~486^2~823 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=bb981533e3b1b0466c7c68733936a8efad757375;p=fs%2Flustre-release.git Branch: b_new_cmd 1) when we can not handler, we should return anyway 2) remove obsolute func --- diff --git a/lustre/mdt/mdt_handler.c b/lustre/mdt/mdt_handler.c index 954f54e..708b52f 100644 --- a/lustre/mdt/mdt_handler.c +++ b/lustre/mdt/mdt_handler.c @@ -155,12 +155,6 @@ void mdt_set_disposition(struct mdt_thread_info *info, rep->lock_policy_res1 |= flag; } -static int mdt_is_remote_object(struct mdt_object *o) -{ - return (o->mot_header.loh_attr & LOHA_REMOTE); -} - - static int mdt_getstatus(struct mdt_thread_info *info) { struct md_device *next = info->mti_mdt->mdt_child; @@ -1745,6 +1739,7 @@ static int mdt_handle0(struct ptlrpc_request *req, } else { req->rq_status = -ENOTSUPP; rc = ptlrpc_error(req); + RETURN(rc); } rc = mdt_reply(req, rc, info); }