https://github.com/torvalds/linux
Revision 4743e0ec1217fd00f57461ebdd7979d31af18700 authored by Lachlan McIlroy on 21 December 2007, 00:00:23 UTC, committed by Lachlan McIlroy on 21 December 2007, 00:40:05 UTC
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.

SGI-PV: 974905
SGI-Modid: xfs-linux-melb:xfs-kern:30282a

Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
1 parent bad60fd
History
Tip revision: 4743e0ec1217fd00f57461ebdd7979d31af18700 authored by Lachlan McIlroy on 21 December 2007, 00:00:23 UTC
[XFS] Initialise current offset in xfs_file_readdir correctly
Tip revision: 4743e0e
File Mode Size
Documentation
arch
block
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
usr
.gitignore -rw-r--r-- 628 bytes
.mailmap -rw-r--r-- 3.6 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 90.1 KB
Kbuild -rw-r--r-- 1.6 KB
MAINTAINERS -rw-r--r-- 91.4 KB
Makefile -rw-r--r-- 51.9 KB
README -rw-r--r-- 16.5 KB
REPORTING-BUGS -rw-r--r-- 3.0 KB

README

back to top