Skip to content

Commit eb95678

Browse files
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: 0e5b044 ("fs/ntfs3: Refactoring attr_set_size to restore after errors") Signed-off-by: Konstantin Komarov <[email protected]>
1 parent 2cbbd96 commit eb95678

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fs/ntfs3/attrib.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,8 @@ int attr_set_size(struct ntfs_inode *ni, enum ATTR_TYPE type,
672672
goto undo_2;
673673
}
674674

675-
if (!is_mft)
675+
/* keep runs for $MFT::$ATTR_DATA and $MFT::$ATTR_BITMAP. */
676+
if (ni->mi.rno != MFT_REC_MFT)
676677
run_truncate_head(run, evcn + 1);
677678

678679
svcn = le64_to_cpu(attr->nres.svcn);

0 commit comments

Comments
 (0)