mirror of
https://github.com/torvalds/linux.git
synced 2024-11-21 19:41:42 +00:00
fs/ntfs3: Keep runs for $MFT::$ATTR_DATA and $MFT::$ATTR_BITMAP
We skip the run_truncate_head call also for $MFT::$ATTR_BITMAP.
Otherwise wnd_map()/run_lookup_entry will not find the disk position for the bitmap parts.
Fixes: 0e5b044cbf
("fs/ntfs3: Refactoring attr_set_size to restore after errors")
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
This commit is contained in:
parent
2cbbd96820
commit
eb95678ee9
@ -672,7 +672,8 @@ pack_runs:
|
||||
goto undo_2;
|
||||
}
|
||||
|
||||
if (!is_mft)
|
||||
/* keep runs for $MFT::$ATTR_DATA and $MFT::$ATTR_BITMAP. */
|
||||
if (ni->mi.rno != MFT_REC_MFT)
|
||||
run_truncate_head(run, evcn + 1);
|
||||
|
||||
svcn = le64_to_cpu(attr->nres.svcn);
|
||||
|
Loading…
Reference in New Issue
Block a user