Whamcloud - gitweb
LU-15971 llite: match lock in corresponding namespace
[fs/lustre-release.git] / lustre / llite / dir.c
index 58e0441..8df0b4c 100644 (file)
@@ -368,7 +368,8 @@ static int ll_readdir(struct file *filp, void *cookie, filldir_t filldir)
                        struct inode *parent =
                                file_dentry(filp)->d_parent->d_inode;
 
-                       if (ll_have_md_lock(parent, &ibits, LCK_MINMODE))
+                       if (ll_have_md_lock(ll_i2mdexp(parent), parent, &ibits,
+                                           LCK_MINMODE))
                                pfid = *ll_inode2fid(parent);
                }