@@ -1407,7 +1407,7 @@ static int ntfs_mft_bitmap_extend_allocation_nolock(ntfs_volume *vol)
14071407 BUG_ON (ll < rl2 -> vcn );
14081408 BUG_ON (ll >= rl2 -> vcn + rl2 -> length );
14091409 /* Get the size for the new mapping pairs array for this extent. */
1410- mp_size = ntfs_get_size_for_mapping_pairs (vol , rl2 , ll );
1410+ mp_size = ntfs_get_size_for_mapping_pairs (vol , rl2 , ll , -1 );
14111411 if (unlikely (mp_size <= 0 )) {
14121412 ntfs_error (vol -> sb , "Get size for mapping pairs failed for "
14131413 "mft bitmap attribute extent." );
@@ -1441,7 +1441,7 @@ static int ntfs_mft_bitmap_extend_allocation_nolock(ntfs_volume *vol)
14411441 /* Generate the mapping pairs array directly into the attr record. */
14421442 ret = ntfs_mapping_pairs_build (vol , (u8 * )a +
14431443 le16_to_cpu (a -> data .non_resident .mapping_pairs_offset ),
1444- mp_size , rl2 , ll , NULL );
1444+ mp_size , rl2 , ll , -1 , NULL );
14451445 if (unlikely (ret )) {
14461446 ntfs_error (vol -> sb , "Failed to build mapping pairs array for "
14471447 "mft bitmap attribute." );
@@ -1529,7 +1529,7 @@ static int ntfs_mft_bitmap_extend_allocation_nolock(ntfs_volume *vol)
15291529 a -> data .non_resident .mapping_pairs_offset ),
15301530 old_alen - le16_to_cpu (
15311531 a -> data .non_resident .mapping_pairs_offset ),
1532- rl2 , ll , NULL )) {
1532+ rl2 , ll , -1 , NULL )) {
15331533 ntfs_error (vol -> sb , "Failed to restore mapping pairs "
15341534 "array.%s" , es );
15351535 NVolSetErrors (vol );
@@ -1838,7 +1838,7 @@ static int ntfs_mft_data_extend_allocation_nolock(ntfs_volume *vol)
18381838 BUG_ON (ll < rl2 -> vcn );
18391839 BUG_ON (ll >= rl2 -> vcn + rl2 -> length );
18401840 /* Get the size for the new mapping pairs array for this extent. */
1841- mp_size = ntfs_get_size_for_mapping_pairs (vol , rl2 , ll );
1841+ mp_size = ntfs_get_size_for_mapping_pairs (vol , rl2 , ll , -1 );
18421842 if (unlikely (mp_size <= 0 )) {
18431843 ntfs_error (vol -> sb , "Get size for mapping pairs failed for "
18441844 "mft data attribute extent." );
@@ -1877,7 +1877,7 @@ static int ntfs_mft_data_extend_allocation_nolock(ntfs_volume *vol)
18771877 /* Generate the mapping pairs array directly into the attr record. */
18781878 ret = ntfs_mapping_pairs_build (vol , (u8 * )a +
18791879 le16_to_cpu (a -> data .non_resident .mapping_pairs_offset ),
1880- mp_size , rl2 , ll , NULL );
1880+ mp_size , rl2 , ll , -1 , NULL );
18811881 if (unlikely (ret )) {
18821882 ntfs_error (vol -> sb , "Failed to build mapping pairs array of "
18831883 "mft data attribute." );
@@ -1959,7 +1959,7 @@ static int ntfs_mft_data_extend_allocation_nolock(ntfs_volume *vol)
19591959 a -> data .non_resident .mapping_pairs_offset ),
19601960 old_alen - le16_to_cpu (
19611961 a -> data .non_resident .mapping_pairs_offset ),
1962- rl2 , ll , NULL )) {
1962+ rl2 , ll , -1 , NULL )) {
19631963 ntfs_error (vol -> sb , "Failed to restore mapping pairs "
19641964 "array.%s" , es );
19651965 NVolSetErrors (vol );
0 commit comments