From: Tao Ma Date: Mon, 9 Jul 2012 20:29:05 +0000 (-0400) Subject: ext4: use proper csum calculation in ext4_rename X-Git-Tag: v3.6-rc1~69^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef58f69c3c34f6377f1e21d3533c806dbd980ad0;p=pandora-kernel.git ext4: use proper csum calculation in ext4_rename In ext4_rename, when the old name is a dir, we need to change ".." to its new parent and journal the change, so with metadata_csum enabled, we have to re-calc the csum. As the first block of the dir can be either a htree root or a normal directory block and we have different csum calculation for these 2 types, we have to choose the right one in ext4_rename. btw, it is found by xfstests 013. Signed-off-by: Tao Ma Signed-off-by: "Theodore Ts'o" Acked-by: Darrick J. Wong --- Reading git-diff-tree failed