]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fs/ntfs3: handle delayed allocation overlap in run lookup
authorKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Fri, 22 May 2026 12:52:37 +0000 (14:52 +0200)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Tue, 2 Jun 2026 15:02:32 +0000 (17:02 +0200)
commit5569b3c5259b26eccc8d9fdc939241abbae5afbb
tree574d597d4373e649e5d8cb321f019c9c44679739
parent4f165b1ff99a7baf2e38df0a1093fcc120d259a3
fs/ntfs3: handle delayed allocation overlap in run lookup

Introduce run_lookup_entry_da() to look up data runs while taking
delayed allocation into account.

ntfs3 may have both committed extents and delayed allocation extents for
the same VCN range.  The new helper checks delayed allocation first and
falls back to the real run, then corrects the returned range when a real
run overlaps with a delayed allocation run.

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