Message ID | DF0E115B-2D8E-45EA-A70A-E42F858A4209@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
--- a/drivers/staging/lustre/lustre/llite/namei.c +++ b/drivers/staging/lustre/lustre/llite/namei.c @@ -558,8 +518,13 @@ static struct dentry *ll_lookup_nd(struct inode *parent, st ruct dentry *dentry, parent->i_generation, parent, flags); /* Optimize away (CREATE && !OPEN). Let .create handle the race. */ - if ((flags & LOOKUP_CREATE) && !(flags & LOOKUP_OPEN)) + if ((flags & LOOKUP_CREATE) && !(flags & LOOKUP_OPEN)) { + int rc; + rc = ll_d_init(dentry); + if (rc < 0) + return ERR_PTR(rc); return NULL; + } if (flags & (LOOKUP_PARENT|LOOKUP_OPEN|LOOKUP_CREATE))