ext4: Fix hueristic which avoids group preallocation for closed files
authorTheodore Ts'o <tytso@mit.edu>
Mon, 28 Sep 2009 04:06:20 +0000 (00:06 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 28 Sep 2009 04:06:20 +0000 (00:06 -0400)
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" <tytso@mit.edu>

No differences found