From 1877b57be800ec91d0ffcd8cb8284ef3475369ee Mon Sep 17 00:00:00 2001 From: huanghua Date: Wed, 29 Nov 2006 09:59:34 +0000 Subject: [PATCH] fix the create mode bug --- lustre/llite/dcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/llite/dcache.c b/lustre/llite/dcache.c index f2d69d4..09f635e 100644 --- a/lustre/llite/dcache.c +++ b/lustre/llite/dcache.c @@ -425,7 +425,6 @@ int ll_revalidate_it(struct dentry *de, int lookup_flags, * change, LOOKUP lock is revoked. */ - it->it_create_mode &= ~current->fs->umask; if (it->it_flags & FMODE_WRITE) { och_p = &lli->lli_mds_write_och; @@ -460,6 +459,7 @@ int ll_revalidate_it(struct dentry *de, int lookup_flags, } do_lock: + it->it_create_mode &= ~current->fs->umask; it->it_flags |= O_CHECK_STALE; rc = md_intent_lock(exp, op_data, NULL, 0, it, lookup_flags, &req, ll_md_blocking_ast, 0); -- 1.8.3.1