From: adilger Date: Tue, 8 Jul 2003 19:34:04 +0000 (+0000) Subject: Grab i_sem on the parent for simple_mknod() and simple_mkdir() functions. X-Git-Tag: v1_7_100~1^91~54 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=34201a73c201dc066a170ef97cacbb7883f6b4d7;p=fs%2Flustre-release.git Grab i_sem on the parent for simple_mknod() and simple_mkdir() functions. With b_orphan these are used during real operations and not just setup. --- diff --git a/lustre/obdclass/simple.c b/lustre/obdclass/simple.c index 4a4ae4c..bd1363a 100644 --- a/lustre/obdclass/simple.c +++ b/lustre/obdclass/simple.c @@ -166,7 +166,7 @@ struct dentry *simple_mknod(struct dentry *dir, char *name, int mode) ASSERT_KERNEL_CTXT("kernel doing mknod outside kernel context\n"); CDEBUG(D_INODE, "creating file %*s\n", (int)strlen(name), name); - dchild = lookup_one_len(name, dir, strlen(name)); + dchild = ll_lookup_one_len(name, dir, strlen(name)); if (IS_ERR(dchild)) GOTO(out_up, dchild); @@ -200,7 +200,7 @@ struct dentry *simple_mkdir(struct dentry *dir, char *name, int mode) ASSERT_KERNEL_CTXT("kernel doing mkdir outside kernel context\n"); CDEBUG(D_INODE, "creating directory %*s\n", (int)strlen(name), name); - dchild = lookup_one_len(name, dir, strlen(name)); + dchild = ll_lookup_one_len(name, dir, strlen(name)); if (IS_ERR(dchild)) GOTO(out_up, dchild);