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)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 11 Sep 2009 03:16:07 +0000 (23:16 -0400)
commit1f7bebb9e911d870fa8f997ddff838e82b5715ea
treebe0efe4467b3f7f079e7f20d7580677580947017
parent0e3d2a6313d03413d93327202a60256d1d726fdc
ext4: Always set dx_node's fake_dirent explicitly.

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>
fs/ext4/namei.c