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)
commitce46ae0c3e31400dc89d1e4620a812647cab9c72
tree89a83d0003806b640bda2eff56ca487fe26bc39f
parent95dd8b2c1ed00c76aaf41b552041c90724749a53
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: be71b5cba2e6 ("fs/ntfs3: Add attrib operations")

Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
fs/ntfs3/attrib.c