提交 f91b9099 编写于 作者: M Martin Stava 提交者: Eric Van Hensbergen

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: NMartin Stava <martin.stava@gmail.com>
Signed-off-by: NEric Van Hensbergen <ericvh@gmail.com>
上级 b6727b12
......@@ -90,6 +90,7 @@ static int v9fs_dir_readdir(struct file *filp, void *dirent, filldir_t filldir)
if (err <= 0)
break;
i = 0;
n = err;
while (i < n) {
err = p9stat_read(statbuf + i, buflen-i, &st,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册