Additional readdir cookie loop information
authorBryan Schumaker <bjschuma@netapp.com>
Fri, 29 Jul 2011 15:49:06 +0000 (11:49 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sat, 30 Jul 2011 18:37:14 +0000 (14:37 -0400)
Print out the name of the file that triggers the cookie loop  message to
make it slightly easier to track down the cause.

Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/dir.c

index d23108b1e33834be2323b1e07d859be7ce4074c7..b238d95ac48c7b926ff1e02eae157ea09fa58a68 100644 (file)
@@ -365,9 +365,10 @@ int nfs_readdir_search_for_cookie(struct nfs_cache_array *array, nfs_readdir_des
                                        if (printk_ratelimit()) {
                                                pr_notice("NFS: directory %s/%s contains a readdir loop."
                                                                "Please contact your server vendor.  "
-                                                               "Offending cookie: %llu\n",
+                                                               "The file: %s has duplicate cookie %llu\n",
                                                                desc->file->f_dentry->d_parent->d_name.name,
                                                                desc->file->f_dentry->d_name.name,
+                                                               array->array[i].string.name,
                                                                *desc->dir_cookie);
                                        }
                                        status = -ELOOP;