aboutsummaryrefslogtreecommitdiff
path: root/lib/ts_bm.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2008-10-25 11:38:37 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2008-12-05 10:55:46 -0800
commita95166a98e56a108884133876db31eda4aa44a18 (patch)
tree0fcd2ef15be0e5ddebd090fd5279f10b3fab804d /lib/ts_bm.c
parent9a80e597fd8bac4adbc6fb454b8e283ef521577f (diff)
ext3: Fix duplicate entries returned from getdents() system call
commit 8c9fa93d51123c5540762b1a9e1919d6f9c4af7c upstream. Fix a regression caused by commit 6a897cf4, "ext3: fix ext3_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. 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> Cc: Willy Tarreau <w@1wt.eu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'lib/ts_bm.c')
0 files changed, 0 insertions, 0 deletions