X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fllite%2Fdcache.c;h=4f5803b8012a9b483fb5110daedb72c74925af93;hp=4c0c6a55e718b66f9bbab0499a6641ed539df5d4;hb=12aa511bf0f2bd7b98cd152a3362ebacec7629ae;hpb=5c30856a437a1ab91ca83b3074d5ca872fc874be diff --git a/lustre/llite/dcache.c b/lustre/llite/dcache.c index 4c0c6a5..4f5803b 100644 --- a/lustre/llite/dcache.c +++ b/lustre/llite/dcache.c @@ -272,7 +272,7 @@ restart: continue; } - + if (ll_drop_dentry(dentry)) goto restart; } @@ -389,7 +389,7 @@ int ll_revalidate_it(struct dentry *de, int lookup_flags, /* Root of the lustre tree. Always valid. * Attributes will be fixed up in ll_inode_revalidate_it */ - if (de->d_name.name[0] == '/' && de->d_name.len == 1) + if (de == de->d_sb->s_root) RETURN(1); OBD_FAIL_TIMEOUT(OBD_FAIL_MDC_REVALIDATE_PAUSE, 5);