]> git.baikalelectronics.ru Git - kernel.git/commit
fs/ntfs3: Keep prealloc for all types of files
authorKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Fri, 1 Oct 2021 15:48:49 +0000 (18:48 +0300)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Mon, 11 Oct 2021 16:10:19 +0000 (19:10 +0300)
commita72f9ffb4f39f008f77b29d93ff90a664b4c2472
tree89a83d0003806b640bda2eff56ca487fe26bc39f
parent5104e46d4eaa48b2141ba40ccc38a7aad1114645
fs/ntfs3: Keep prealloc for all types of files

Before we haven't kept prealloc for sparse files because we thought that
it will speed up create / write operations.
It lead to situation, when user reserved some space for sparse file,
filled volume, and wasn't able to write in reserved file.
With this commit we keep prealloc.
Now xfstest generic/274 pass.
Fixes: 8265e412e05b ("fs/ntfs3: Add attrib operations")
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
fs/ntfs3/attrib.c