From: Mark Fasheh Date: Tue, 5 Aug 2008 18:32:46 +0000 (-0700) Subject: ocfs2: correctly set i_blocks after inline dir gets expanded X-Git-Tag: v2.6.27-rc5~20^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9780eb6cfaf7d2d5ccc061eaf94e7aec6a17791e;p=pandora-kernel.git ocfs2: correctly set i_blocks after inline dir gets expanded We were setting i_blocks based on allocation before the extent insert, which is wrong as the value is a calculation based on ip_clusters which gets updated as a result of the insert. This patch moves the line in question to just after the call to ocfs2_insert_extent(). Without this fix, inline directories were temporarily having an i_blocks value of zero immediately after expansion to extents. Reported-and-tested-by: Tristan Ye Signed-off-by: Mark Fasheh --- Reading git-diff-tree failed