From c3c446b2c709024a81d36085823cefd6dc7bba13 Mon Sep 17 00:00:00 2001 From: wangdi Date: Tue, 8 Aug 2006 16:30:19 +0000 Subject: [PATCH] Branch: b_new_cmd seems a typo, anyway we need pack the attr back when inode revalidate --- lustre/mdt/mdt_handler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 1.8.3.1