From cc846846900ece1d5b06a4c48176604da5bd90dc Mon Sep 17 00:00:00 2001 From: adilger Date: Fri, 18 Oct 2002 19:13:03 +0000 Subject: [PATCH] Another minor "make the current code closer to intent code" change. --- lustre/llite/dcache.c | 2 +- lustre/llite/namei.c | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/lustre/llite/dcache.c b/lustre/llite/dcache.c index c66423e..577d288a 100644 --- a/lustre/llite/dcache.c +++ b/lustre/llite/dcache.c @@ -124,7 +124,7 @@ int ll_revalidate2(struct dentry *de, int flags, struct lookup_intent *it) ll_set_dd(de); } //down(&ll_d2d(de)->lld_it_sem); - // de->d_it = it; + // de->d_it = it; RETURN(rc); } diff --git a/lustre/llite/namei.c b/lustre/llite/namei.c index 1f7e598..8e35870 100644 --- a/lustre/llite/namei.c +++ b/lustre/llite/namei.c @@ -452,13 +452,15 @@ int ll_mdc_rename(struct inode *src, struct inode *tgt, */ static int ll_create(struct inode *dir, struct dentry *dentry, int mode) { - struct lookup_intent *it = dentry->d_it; + struct lookup_intent *it; struct inode *inode; int rc = 0; ENTRY; CHECK_MOUNT_EPOCH(dir); + it = dentry->d_it; + inode = ll_create_node(dir, dentry->d_name.name, dentry->d_name.len, NULL, 0, mode, 0, it, NULL); @@ -468,7 +470,7 @@ static int ll_create(struct inode *dir, struct dentry *dentry, int mode) if (it->it_disposition) { struct ll_inode_info *lli = ll_i2info(inode); memcpy(&lli->lli_intent_lock_handle, it->it_lock_handle, - sizeof(struct lustre_handle)); + sizeof(lli->lli_intent_lock_handle)); d_instantiate(dentry, inode); } else { /* no directory data updates when intents rule */ @@ -517,8 +519,7 @@ static int ll_symlink(struct inode *dir, struct dentry *dentry, it = dentry->d_it; inode = ll_create_node(dir, dentry->d_name.name, dentry->d_name.len, - symname, l, S_IFLNK | S_IRWXUGO, 0, - it, NULL); + symname, l, S_IFLNK | S_IRWXUGO, 0, it, NULL); if (IS_ERR(inode)) RETURN(PTR_ERR(inode)); -- 1.8.3.1