X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fllite%2Fdcache.c;h=cf1f734b2cc65d39e6c739196d1a290877454f5d;hp=02aeac57dd0b719ab2e02e754e1a194f105a083e;hb=6f96212ff990f42eae517a1d5c8f4af7a40a8b80;hpb=492f2f801f479e06a357bc7507afddd1dde1e61c diff --git a/lustre/llite/dcache.c b/lustre/llite/dcache.c index 02aeac5..cf1f734 100644 --- a/lustre/llite/dcache.c +++ b/lustre/llite/dcache.c @@ -394,7 +394,11 @@ int ll_revalidate_it(struct dentry *de, int lookup_flags, } /* Never execute intents for mount points. - * need to get attributes in case it got changed from other client */ + * Attributes will be fixed up in ll_inode_revalidate_it */ + if (d_mountpoint(de)) + GOTO(out_sa, rc = 1); + + /* need to get attributes in case root got changed from other client */ if (de == de->d_sb->s_root) { rc = __ll_inode_revalidate_it(de, it, MDS_INODELOCK_LOOKUP); if (rc == 0) @@ -402,9 +406,6 @@ int ll_revalidate_it(struct dentry *de, int lookup_flags, GOTO(out_sa, rc); } - if (d_mountpoint(de)) - GOTO(out_sa, rc = 1); - exp = ll_i2mdexp(de->d_inode); OBD_FAIL_TIMEOUT(OBD_FAIL_MDC_REVALIDATE_PAUSE, 5);