From: Theodore Ts'o Date: Mon, 28 Sep 2009 04:06:20 +0000 (-0400) Subject: ext4: Fix hueristic which avoids group preallocation for closed files X-Git-Tag: v2.6.32-rc3~60^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71780577306fd1e76c7a92e3b308db624d03adb9;p=pandora-kernel.git ext4: Fix hueristic which avoids group preallocation for closed files The hueristic was designed to avoid using locality group preallocation when writing the last segment of a closed file. Fix it by move setting size to the maximum of size and isize until after we check whether size == isize. Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed