]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext4: Always set dx_node's fake_dirent explicitly.
authorAndreas Schlick <schlick@lavabit.com>
Fri, 11 Sep 2009 03:16:07 +0000 (23:16 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 14 Dec 2009 16:06:38 +0000 (08:06 -0800)
commitd78f2ac343787f48e97c87676fccaef850a50cbe
tree5268c58a44a355704943f21f258d91eb45419217
parent7a71dacba604fee399884a5f3d2c53e21e9c3a79
ext4: Always set dx_node's fake_dirent explicitly.

(cherry picked from commit 1f7bebb9e911d870fa8f997ddff838e82b5715ea)

When ext4_dx_add_entry() has to split an index node, it has to ensure that
name_len of dx_node's fake_dirent is also zero, because otherwise e2fsck
won't recognise it as an intermediate htree node and consider the htree to
be corrupted.

Signed-off-by: Andreas Schlick <schlick@lavabit.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ext4/namei.c