Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fs/ntfs3: drop preallocated clusters for sparse and compressed files

Do not keep preallocated clusters for sparsed and compressed files.
Preserving preallocation in these cases causes fsx failures when running
with sparse files and preallocation enabled.

Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>

+3 -1
+3 -1
fs/ntfs3/attrib.c
··· 448 448 449 449 is_ext = is_attr_ext(attr_b); 450 450 align = sbi->cluster_size; 451 - if (is_ext) 451 + if (is_ext) { 452 452 align <<= attr_b->nres.c_unit; 453 + keep_prealloc = false; 454 + } 453 455 454 456 old_valid = le64_to_cpu(attr_b->nres.valid_size); 455 457 old_size = le64_to_cpu(attr_b->nres.data_size);