]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fs/ntfs3: disable readahead for compressed files
authorKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Tue, 14 Oct 2025 17:17:25 +0000 (20:17 +0300)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Sat, 1 Nov 2025 15:30:01 +0000 (16:30 +0100)
commit1ff28f36eb2f3b22b07c4f233f01b3a166108d1c
tree61c094d248a119bea9cac09e3c1e99c137124d72
parent9948dcb2f7b5a1bf8e8710eafaf6016e00be3ad6
fs/ntfs3: disable readahead for compressed files

Reading large compressed files is extremely slow when readahead is enabled.
For example, reading a 4 GB XPRESS-4K compressed file (compression ratio
≈ 4:1) takes about 230 minutes with readahead enabled, but only around 3
minutes when readahead is disabled.

The issue was first observed in January 2025 and is reproducible with large
compressed NTFS files. Disabling readahead for compressed files avoids this
performance regression, although this may not be the ideal long-term fix.

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