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

ext4: Don't treat a truncation of a zero-length file as replace-via-truncate



If a non-existent file is opened via O_WRONLY|O_CREAT|O_TRUNC, there's
no need to treat this as a true file truncation, so we shouldn't
activate the replace-via-truncate hueristic.

Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
parent 9aee2286
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