X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fllite%2Fdcache.c;h=a338e40679657521533625017a1e64c1b971a5fe;hp=436dea9f77b63da84fa16e6977d8ff34d336aac4;hb=40e5945377e1b71dbd6afeaa10ea17f2b876db86;hpb=e236c288f22935f25a2bddb32c5ecf5503d3b207 diff --git a/lustre/llite/dcache.c b/lustre/llite/dcache.c index 436dea9..a338e40 100644 --- a/lustre/llite/dcache.c +++ b/lustre/llite/dcache.c @@ -330,7 +330,7 @@ int ll_revalidate_it(struct dentry *de, int flags, struct nameidata *nd, atomic_read(&de->d_count)); ll_lookup_finish_locks(it, de); de->d_flags &= ~DCACHE_LUSTRE_INVALID; - if (!(de->d_inode->i_mode & S_ISUID) || + if (!((de->d_inode->i_mode & S_ISUID) &&S_ISDIR(de->d_inode->i_mode)) || !(flags & LOOKUP_CONTINUE || (it->it_op & (IT_CHDIR | IT_OPEN)))) return rc;