Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
16a60b36
Commit
16a60b36
authored
Sep 30, 2004
by
Anton Altaparmakov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NTFS: Rename ntfs_merge_runlists() to ntfs_runlists_merge().
Signed-off-by:
Anton Altaparmakov
<
aia21@cantab.net
>
parent
5d303083
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
5 deletions
+9
-5
fs/ntfs/ChangeLog
fs/ntfs/ChangeLog
+2
-1
fs/ntfs/inode.c
fs/ntfs/inode.c
+1
-1
fs/ntfs/runlist.c
fs/ntfs/runlist.c
+3
-3
fs/ntfs/runlist.h
fs/ntfs/runlist.h
+3
-0
No files found.
fs/ntfs/ChangeLog
View file @
16a60b36
...
...
@@ -29,7 +29,8 @@ ToDo/Notes:
- Add vol->mft_data_pos and initialize it at mount time.
- Rename init_runlist() to ntfs_init_runlist(), ntfs_vcn_to_lcn() to
ntfs_rl_vcn_to_lcn(), decompress_mapping_pairs() to
ntfs_mapping_pairs_decompress() and adapt all callers.
ntfs_mapping_pairs_decompress(), ntfs_merge_runlists() to
ntfs_runlists_merge() and adapt all callers.
- Add fs/ntfs/runlist.[hc]::ntfs_get_nr_significant_bytes(),
ntfs_get_size_for_mapping_pairs(), ntfs_write_significant_bytes(),
and ntfs_mapping_pairs_build(), adapted from libntfs.
...
...
fs/ntfs/inode.c
View file @
16a60b36
...
...
@@ -1673,7 +1673,7 @@ static int ntfs_read_locked_index_inode(struct inode *base_vi, struct inode *vi)
* We solve these problems by starting with the $DATA attribute before anything
* else and iterating using ntfs_attr_lookup($DATA) over all extents. As each
* extent is found, we ntfs_mapping_pairs_decompress() including the implied
* ntfs_
merge_runlists
(). Each step of the iteration necessarily provides
* ntfs_
runlists_merge
(). Each step of the iteration necessarily provides
* sufficient information for the next step to complete.
*
* This should work but there are two possible pit falls (see inline comments
...
...
fs/ntfs/runlist.c
View file @
16a60b36
...
...
@@ -449,7 +449,7 @@ static inline runlist_element *ntfs_rl_split(runlist_element *dst, int dsize,
}
/**
* ntfs_
merge_runlists
- merge two runlists into one
* ntfs_
runlists_merge
- merge two runlists into one
* @drl: original runlist to be worked on
* @srl: new runlist to be merged into @drl
*
...
...
@@ -482,7 +482,7 @@ static inline runlist_element *ntfs_rl_split(runlist_element *dst, int dsize,
* -EINVAL - Invalid parameters were passed in.
* -ERANGE - The runlists overlap and cannot be merged.
*/
runlist_element
*
ntfs_
merge_runlists
(
runlist_element
*
drl
,
runlist_element
*
ntfs_
runlists_merge
(
runlist_element
*
drl
,
runlist_element
*
srl
)
{
int
di
,
si
;
/* Current index into @[ds]rl. */
...
...
@@ -915,7 +915,7 @@ runlist_element *ntfs_mapping_pairs_decompress(const ntfs_volume *vol,
return
rl
;
}
/* Now combine the new and old runlists checking for overlaps. */
old_rl
=
ntfs_
merge_runlists
(
old_rl
,
rl
);
old_rl
=
ntfs_
runlists_merge
(
old_rl
,
rl
);
if
(
likely
(
!
IS_ERR
(
old_rl
)))
return
old_rl
;
ntfs_free
(
rl
);
...
...
fs/ntfs/runlist.h
View file @
16a60b36
...
...
@@ -40,6 +40,9 @@ typedef enum {
LCN_ENOENT
=
-
3
,
}
LCN_SPECIAL_VALUES
;
extern
runlist_element
*
ntfs_runlists_merge
(
runlist_element
*
drl
,
runlist_element
*
srl
);
extern
runlist_element
*
ntfs_mapping_pairs_decompress
(
const
ntfs_volume
*
vol
,
const
ATTR_RECORD
*
attr
,
runlist_element
*
old_rl
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment