diff options
author | Theodore Ts'o <tytso@mit.edu> | 2008-11-16 11:05:34 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-12-05 10:55:42 -0800 |
commit | f93631dbf476a77b941d347d64c3fd70fb35a1b2 (patch) | |
tree | 067e7e2447043f9244790d5b74d509e331283509 /fs/file.c | |
parent | ab2e23ffdaaeca8db97adf16bcecdbd95a286c7f (diff) |
ext4: Fix duplicate entries returned from getdents() system call
(cherry picked from commit 3c37fc86d20fe35be656f070997d62f75c2e4874)
Fix a regression caused by commit d0156417, "ext4: fix ext4_dx_readdir
hash collision handling", where deleting files in a large directory
(requiring more than one getdents system call), results in some
filenames being returned twice. This was caused by a failure to
update info->curr_hash and info->curr_minor_hash, so that if the
directory had gotten modified since the last getdents() system call
(as would be the case if the user is running "rm -r" or "git clean"),
a directory entry would get returned twice to the userspace.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
This patch fixes the bug reported by Markus Trippelsdorf at:
http://bugzilla.kernel.org/show_bug.cgi?id=11844
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Tested-by: Markus Trippelsdorf <markus@trippelsdorf.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/file.c')
0 files changed, 0 insertions, 0 deletions