mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 13:53:33 +00:00
befs_readdir(): do not increment ->f_pos if filldir tells us to stop
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
31abdab9c1
commit
448293aadb
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue