Re: [PATCH] Re: ext3: fix ext3_dx_readdir hash collision handling- Regression

From: Markus Trippelsdorf
Date: Sat Oct 25 2008 - 08:26:20 EST


On Sat, Oct 25, 2008 at 07:56:31AM -0400, Theodore Tso wrote:
>
> Unfortunately, the commit which which fixes the duplicated entries
> when there are hash collisions wasn't properly setting info->curr_hash
> and info->curr_minor_hash after going to the next node, which results
> the first entry being returned twice on the subsequent getdents()
> system call. What I don't understand was why I wasn't seeing this on
> a 32-bit kernel (maybe I screwed up my test environment; this problem
> should have occurred regardless of the 32-bit or 64-bit environment).
>
> In any case, if folks could test to see whether this patch fixes
> things, I'd appreciate it. (Patch for ext3 and ext4 follows).
>
> - Ted

Yep, your patch fixes the issue. Thank you Ted.

--
Markus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/