From bb981533e3b1b0466c7c68733936a8efad757375 Mon Sep 17 00:00:00 2001 From: wangdi Date: Tue, 26 Sep 2006 07:23:41 +0000 Subject: [PATCH] Branch: b_new_cmd 1) when we can not handler, we should return anyway 2) remove obsolute func --- lustre/mdt/mdt_handler.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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); } -- 1.8.3.1