X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fllite%2Fnamei.c;h=9eecc1f752bfc9266675dd200e797c4a89836a82;hp=3106c36529693679250abfc40e1394c02afcfef4;hb=cc580d67ee72fce637374891714885c889dce026;hpb=64218d0b47731c039234b16b8343d8ee3b407281 diff --git a/lustre/llite/namei.c b/lustre/llite/namei.c index 3106c36..9eecc1f 100644 --- a/lustre/llite/namei.c +++ b/lustre/llite/namei.c @@ -411,7 +411,9 @@ static struct dentry *ll_find_alias(struct inode *inode, struct dentry *de) iput(inode); return last_discon; } + lock_dentry(de); de->d_flags |= DCACHE_LUSTRE_INVALID; + unlock_dentry(de); ll_d_add(de, inode); spin_unlock(&dcache_lock);