aboutsummaryrefslogtreecommitdiffstats
path: root/fs/9p/vfs_dir.c
diff options
context:
space:
mode:
authorMartin Stava <martin.stava@gmail.com>2009-11-02 09:39:35 -0500
committerEric Van Hensbergen <ericvh@gmail.com>2009-11-02 09:43:44 -0500
commitf91b90993f0d286be89f06c2f547ced8cfe291c6 (patch)
tree556667dabcd184b7713101c3bb456142fc645642 /fs/9p/vfs_dir.c
parentb6727b12dd2ffb4a890eb5b13a298230c29ba45d (diff)
9p: fix a small bug in readdir for long directories
Here is a proposed patch for bug in readdir. Listing of dirs with many files fails without this patch. Signed-off-by: Martin Stava <martin.stava@gmail.com> Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'fs/9p/vfs_dir.c')
-rw-r--r--fs/9p/vfs_dir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/9p/vfs_dir.c b/fs/9p/vfs_dir.c
index 873cd31baa47..cae53d405f21 100644
--- a/fs/9p/vfs_dir.c
+++ b/fs/9p/vfs_dir.c
@@ -90,6 +90,7 @@ static int v9fs_dir_readdir(struct file *filp, void *dirent, filldir_t filldir)
90 if (err <= 0) 90 if (err <= 0)
91 break; 91 break;
92 92
93 i = 0;
93 n = err; 94 n = err;
94 while (i < n) { 95 while (i < n) {
95 err = p9stat_read(statbuf + i, buflen-i, &st, 96 err = p9stat_read(statbuf + i, buflen-i, &st,