summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorMatthias Goergens <matthias.goergens@gmail.com>2026-10-04 17:56:07 +0800
committerNamjae Jeon <linkinjeon@kernel.org>2026-10-20 18:41:54 +0900
commit540fe7e8cf432a7de22064a50bb8c33d1240c1e9 (patch)
treeb0d447f5c06f5faa0a40801d08b40b3a01208318 /scripts/Makefile.thinlto
parent18d4d2a3ce756af690a620a5199616ce2611c2c9 (diff)
downloadlinux-540fe7e8cf432a7de22064a50bb8c33d1240c1e9.tar.gz
linux-540fe7e8cf432a7de22064a50bb8c33d1240c1e9.zip
ntfs: do not refuse fallocate() when the MFT zone is empty
ntfs_fallocate() fails with -ENOSPC whenever the MFT zone has shrunk to nothing. The cluster allocator gives the MFT zone up when it cannot find free clusters elsewhere, and nothing restores it before the next mount, so after one such failure every fallocate() on the volume fails with ENOSPC, punching holes included, however much space is freed. The allocator failure fixed by the previous patch was enough to get there: afterwards a one-cluster fallocate() failed with ENOSPC while 123 MiB of the 128 MiB volume were free. write() and truncate() do not look at the MFT zone, and ntfs_allocate_range() already fails with -ENOSPC when too few clusters are free. Remove the check. Fixes: 9c87959601e8 ("ntfs: update file operations") Signed-off-by: Matthias Goergens <matthias.goergens@gmail.com> Reviewed-by: Baolin Liu <liubaolin@kylinos.cn> Reviewed-by: Hyunchul Lee <hyc.lee@gmail.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions