Skip to content

Commit

Permalink
befs_readdir(): do not increment ->f_pos if filldir tells us to stop
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Al Viro committed May 31, 2013
1 parent 31abdab commit 448293a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/befs/linuxvfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 448293a

Please sign in to comment.