mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 10:33:41 +02:00
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>
This commit is contained in:
parent
dcd9d6a471
commit
3a6aba7f3c
|
|
@ -448,8 +448,10 @@ int attr_set_size(struct ntfs_inode *ni, enum ATTR_TYPE type,
|
|||
|
||||
is_ext = is_attr_ext(attr_b);
|
||||
align = sbi->cluster_size;
|
||||
if (is_ext)
|
||||
if (is_ext) {
|
||||
align <<= attr_b->nres.c_unit;
|
||||
keep_prealloc = false;
|
||||
}
|
||||
|
||||
old_valid = le64_to_cpu(attr_b->nres.valid_size);
|
||||
old_size = le64_to_cpu(attr_b->nres.data_size);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user