提交 448293aa 编写于 作者: A Al Viro

befs_readdir(): do not increment ->f_pos if filldir tells us to stop

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 31abdab9
......@@ -265,8 +265,8 @@ befs_readdir(struct file *filp, void *dirent, filldir_t filldir)
result = filldir(dirent, keybuf, keysize, filp->f_pos,
(ino_t) value, d_type);
}
filp->f_pos++;
if (!result)
filp->f_pos++;
befs_debug(sb, "<--- befs_readdir() filp->f_pos %Ld", filp->f_pos);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册