NFS: fix the handling of NFS_INO_INVALID_DATA flag in nfs_revalidate_mapping
[deliverable/linux.git] / fs / nfs / dir.c
index b266f734bd5394a092edcf288fcd29d54e55df13..b39a0468829b317d8e5aa93e9d2a53a816f8524f 100644 (file)
@@ -288,7 +288,8 @@ int nfs_readdir_search_for_cookie(struct nfs_cache_array *array, nfs_readdir_des
 
                        new_pos = desc->current_index + i;
                        if (ctx->attr_gencount != nfsi->attr_gencount
-                           || (nfsi->cache_validity & (NFS_INO_INVALID_ATTR|NFS_INO_INVALID_DATA))) {
+                           || (nfsi->cache_validity & (NFS_INO_INVALID_ATTR|NFS_INO_INVALID_DATA))
+                           || test_bit(NFS_INO_INVALIDATING, &nfsi->flags)) {
                                ctx->duped = 0;
                                ctx->attr_gencount = nfsi->attr_gencount;
                        } else if (new_pos < desc->ctx->pos) {
This page took 0.024854 seconds and 5 git commands to generate.