ntfs_non_resident_attr_expand(): fix corruption during rollback (Yura Pakhuchiy)

master
szaka 2008-07-15 16:52:10 +00:00
parent 64560ad1f4
commit d1f14ea752
1 changed files with 1 additions and 1 deletions

View File

@ -4903,7 +4903,7 @@ rollback:
ntfs_log_perror("Couldn't truncate runlist. Rollback failed");
} else {
/* Prepare to mapping pairs update. */
na->allocated_size = org_alloc_size << vol->cluster_size_bits;
na->allocated_size = org_alloc_size;
/* Restore mapping pairs. */
if (ntfs_attr_update_mapping_pairs(na, 0 /*na->allocated_size >>
vol->cluster_size_bits*/)) {