fs/ntfs3: Fixing wrong logic in attr_set_size and ntfs_fallocate
authorKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Fri, 7 Oct 2022 17:08:06 +0000 (20:08 +0300)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Mon, 14 Nov 2022 16:50:45 +0000 (19:50 +0300)
commitad26a9c84510af7252e582e811de970433a9758f
tree1ff58837119463adb14e7f610b619935aa69931b
parent2b108260ea2c9ec07651aea4911d7e2e6ab560f7
fs/ntfs3: Fixing wrong logic in attr_set_size and ntfs_fallocate

There were 2 problems:
- in some cases we lost dirty flag;
- cluster allocation can be called even when it wasn't needed.
Fixes xfstest generic/465

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