From: Johann Lombardi Date: Thu, 7 Oct 2010 20:05:25 +0000 (+0200) Subject: b=23645 remove another i_mutex warning with 2.6.32 X-Git-Tag: v1_8_4_54~11 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=fa0e8a1874b26a17b0c555a0a986415f8b7ed556;p=fs%2Flustre-release.git b=23645 remove another i_mutex warning with 2.6.32 hold inode mutex before calling lookup_on_len() when creating objects on MDS. --- diff --git a/lustre/mds/mds_fs.c b/lustre/mds/mds_fs.c index 58ee4d6..13d565b 100644 --- a/lustre/mds/mds_fs.c +++ b/lustre/mds/mds_fs.c @@ -977,7 +977,7 @@ int mds_obd_create(struct obd_export *exp, struct obdo *oa, push_ctxt(saved, &exp->exp_obd->obd_lvfs_ctxt, &ucred); sprintf(fidname, "%u.%u", tmpname, current->pid); - dchild = lookup_one_len(fidname, mds->mds_objects_dir, strlen(fidname)); + dchild = ll_lookup_one_len(fidname, mds->mds_objects_dir, strlen(fidname)); if (IS_ERR(dchild)) { CERROR("getting neg dentry for obj: %u\n", tmpname); GOTO(out_pop, rc = PTR_ERR(dchild));