From b576a669d93619af21dbcf150a3aab7f2bf8f226 Mon Sep 17 00:00:00 2001 From: wangdi Date: Wed, 1 Nov 2006 16:40:02 +0000 Subject: [PATCH] Branch b_new_cmd check -EREMOTE before return --- lustre/mdt/mdt_handler.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lustre/mdt/mdt_handler.c b/lustre/mdt/mdt_handler.c index 2348782..3614a55 100644 --- a/lustre/mdt/mdt_handler.c +++ b/lustre/mdt/mdt_handler.c @@ -672,7 +672,7 @@ static int mdt_is_subdir(struct mdt_thread_info *info) LASSERT(mdt_object_exists(o) > 0); rc = mdo_is_subdir(info->mti_env, mdt_object_child(o), &body->fid2, &repbody->fid1); - if (rc < 0) + if (rc < 0 && rc != -EREMOTE) RETURN(rc); /* @@ -1055,7 +1055,7 @@ static int mdt_write_dir_page(struct mdt_thread_info *info, struct page *page, * for this. */ info->mti_no_need_trans = 1; - + kmap(page); dp = page_address(page); offset = (int)((__u32)lu_dirent_start(dp) - (__u32)dp); @@ -1067,7 +1067,7 @@ static int mdt_write_dir_page(struct mdt_thread_info *info, struct page *page, if (le16_to_cpu(ent->lde_namelen) == 0) continue; - + is_dir = le32_to_cpu(ent->lde_hash) & MAX_HASH_HIGHEST_BIT; OBD_ALLOC(name, le16_to_cpu(ent->lde_namelen) + 1); if (name == NULL) -- 1.8.3.1