fs/ntfs3: Optimize large writes into sparse file
authorKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Fri, 28 Jun 2024 15:27:46 +0000 (18:27 +0300)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Tue, 3 Sep 2024 13:58:39 +0000 (16:58 +0300)
commitacdbd67bf939577d6f9e3cf796a005c31cec52d8
tree16a0dc2129bdb8d814a53dffdfdd74311122d448
parent2db86f7995fe6b62a4d6fee9f3cdeba3c6d27606
fs/ntfs3: Optimize large writes into sparse file

Optimized cluster allocation by allocating a large chunk in advance
before writing, instead of allocating during the writing process
by clusters.
Essentially replicates the logic of fallocate.

Fixes: 4342306f0f0d ("fs/ntfs3: Add file operations and implementation")
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
fs/ntfs3/file.c