Whamcloud - gitweb
llite: readdir: reset dup counter.
authornikita <nikita>
Fri, 20 Oct 2006 23:13:41 +0000 (23:13 +0000)
committernikita <nikita>
Fri, 20 Oct 2006 23:13:41 +0000 (23:13 +0000)
lustre/llite/dir.c

index 7a99bac..26e9ced 100644 (file)
@@ -487,6 +487,8 @@ int ll_readdir(struct file *filp, void *cookie, filldir_t filldir)
                                  */
                                 if (hash == prevhash)
                                         dup++;
+                                else
+                                        dup = 0;
                                 prevhash = hash;
 
                                 if (hash == fd->fd_dir.lfd_duppos &&