Skip to content
Commit 71780577 authored by Theodore Ts'o's avatar Theodore Ts'o
Browse files

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: default avatar"Theodore Ts'o" <tytso@mit.edu>
parent 1693918e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment