aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/dir.c
diff options
context:
space:
mode:
authorBryan Schumaker <bjschuma@netapp.com>2011-07-29 11:49:06 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2011-07-30 14:37:14 -0400
commit374e4e3ec347d4f70e1417ce3e1c454f133dab72 (patch)
tree9309b00af4c76c2f24854a15ce9e3d3f14741862 /fs/nfs/dir.c
parent0c0308066ca53fdf1423895f3a42838b67b3a5a8 (diff)
Additional readdir cookie loop information
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>
Diffstat (limited to 'fs/nfs/dir.c')
-rw-r--r--fs/nfs/dir.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c
index d23108b1e338..b238d95ac48c 100644
--- a/fs/nfs/dir.c
+++ b/fs/nfs/dir.c
@@ -365,9 +365,10 @@ int nfs_readdir_search_for_cookie(struct nfs_cache_array *array, nfs_readdir_des
365 if (printk_ratelimit()) { 365 if (printk_ratelimit()) {
366 pr_notice("NFS: directory %s/%s contains a readdir loop." 366 pr_notice("NFS: directory %s/%s contains a readdir loop."
367 "Please contact your server vendor. " 367 "Please contact your server vendor. "
368 "Offending cookie: %llu\n", 368 "The file: %s has duplicate cookie %llu\n",
369 desc->file->f_dentry->d_parent->d_name.name, 369 desc->file->f_dentry->d_parent->d_name.name,
370 desc->file->f_dentry->d_name.name, 370 desc->file->f_dentry->d_name.name,
371 array->array[i].string.name,
371 *desc->dir_cookie); 372 *desc->dir_cookie);
372 } 373 }
373 status = -ELOOP; 374 status = -ELOOP;