From: wangdi Date: Tue, 8 Aug 2006 16:30:19 +0000 (+0000) Subject: Branch: b_new_cmd X-Git-Tag: v1_8_0_110~486^2~1231 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=c3c446b2c709024a81d36085823cefd6dc7bba13;p=fs%2Flustre-release.git Branch: b_new_cmd seems a typo, anyway we need pack the attr back when inode revalidate --- diff --git a/lustre/mdt/mdt_handler.c b/lustre/mdt/mdt_handler.c index d353d39..7c636b5 100644 --- a/lustre/mdt/mdt_handler.c +++ b/lustre/mdt/mdt_handler.c @@ -383,7 +383,7 @@ static int mdt_getattr_name_lock(struct mdt_thread_info *info, mdt_lock_handle_init(lhc); lhc->mlh_mode = LCK_CR; result = mdt_object_lock(info, child, lhc, child_bits); - if (result != 0) { + if (result == 0) { /* finally, we can get attr for child. */ result = mdt_getattr_internal(info, child, ldlm_rep ? 2 : 1);