[XFS] Initialise current offset in xfs_file_readdir correctly
After reading the directory contents into the temporary buffer, we grab
each dirent and pass it to filldir witht eh current offset of the dirent.
The current offset was not being set for the first dirent in the temporary
buffer, which coul dresult in bad offsets being set in the f_pos field
result in looping and duplicate entries being returned from readdir.
Signed-off-by: David Chinner <firstname.lastname@example.org>
Signed-off-by: Tim Shimmin <email@example.com>
Signed-off-by: Lachlan McIlroy <firstname.lastname@example.org>
1 file changed