diff options
author | Anton Altaparmakov <aia21@cantab.net> | 2005-06-25 12:15:36 -0400 |
---|---|---|
committer | Anton Altaparmakov <aia21@cantab.net> | 2005-06-25 12:15:36 -0400 |
commit | fa3be92317c4ae34edcf5274e8bbeff181e20b7a (patch) | |
tree | 84ae4ace6c891aa95b804950283e1f8f3e46c730 /fs/ntfs/attrib.c | |
parent | 1d58b27b8d77ecb816cfa8f846b78c845675eb89 (diff) |
NTFS: Add an extra parameter @last_vcn to ntfs_get_size_for_mapping_pairs()
and ntfs_mapping_pairs_build() to allow the runlist encoding to be
partial which is desirable when filling holes in sparse attributes.
Update all callers.
Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
Diffstat (limited to 'fs/ntfs/attrib.c')
-rw-r--r-- | fs/ntfs/attrib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ntfs/attrib.c b/fs/ntfs/attrib.c index 34ea405b883d..c6b2bb64d651 100644 --- a/fs/ntfs/attrib.c +++ b/fs/ntfs/attrib.c | |||
@@ -1317,7 +1317,7 @@ int ntfs_attr_make_non_resident(ntfs_inode *ni) | |||
1317 | page = NULL; | 1317 | page = NULL; |
1318 | } | 1318 | } |
1319 | /* Determine the size of the mapping pairs array. */ | 1319 | /* Determine the size of the mapping pairs array. */ |
1320 | mp_size = ntfs_get_size_for_mapping_pairs(vol, rl, 0); | 1320 | mp_size = ntfs_get_size_for_mapping_pairs(vol, rl, 0, -1); |
1321 | if (unlikely(mp_size < 0)) { | 1321 | if (unlikely(mp_size < 0)) { |
1322 | err = mp_size; | 1322 | err = mp_size; |
1323 | ntfs_debug("Failed to get size for mapping pairs array, error " | 1323 | ntfs_debug("Failed to get size for mapping pairs array, error " |
@@ -1416,7 +1416,7 @@ int ntfs_attr_make_non_resident(ntfs_inode *ni) | |||
1416 | cpu_to_sle64(attr_size); | 1416 | cpu_to_sle64(attr_size); |
1417 | /* Generate the mapping pairs array into the attribute record. */ | 1417 | /* Generate the mapping pairs array into the attribute record. */ |
1418 | err = ntfs_mapping_pairs_build(vol, (u8*)a + mp_ofs, | 1418 | err = ntfs_mapping_pairs_build(vol, (u8*)a + mp_ofs, |
1419 | arec_size - mp_ofs, rl, 0, NULL); | 1419 | arec_size - mp_ofs, rl, 0, -1, NULL); |
1420 | if (unlikely(err)) { | 1420 | if (unlikely(err)) { |
1421 | ntfs_debug("Failed to build mapping pairs, error code %i.", | 1421 | ntfs_debug("Failed to build mapping pairs, error code %i.", |
1422 | err); | 1422 | err); |