diff options
author | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2021-10-22 16:37:52 +0200 |
---|---|---|
committer | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2021-11-23 16:55:49 +0100 |
commit | e95113ed4d428219e3395044e29f5713fc446720 (patch) | |
tree | 9af8993f8ab72f094db2c5e8b52dfb7df9af825c /fs/file.c | |
parent | fs/ntfs3: Fix some memory leaks in an error handling path of 'log_replay()' (diff) | |
download | linux-e95113ed4d428219e3395044e29f5713fc446720.tar.xz linux-e95113ed4d428219e3395044e29f5713fc446720.zip |
fs/ntfs3: Keep preallocated only if option prealloc enabled
If size of file was reduced, we still kept allocated blocks.
This commit makes ntfs3 work as other fs like btrfs.
Link: https://bugzilla.kernel.org/show_bug.cgi?id=214719
Fixes: 4342306f0f0d ("fs/ntfs3: Add file operations and implementation")
Reported-by: Ganapathi Kamath <hgkamath@hotmail.com>
Tested-by: Ganapathi Kamath <hgkamath@hotmail.com>
Reviewed-by: Kari Argillander <kari.argillander@gmail.com>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'fs/file.c')
0 files changed, 0 insertions, 0 deletions