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
7b2ac386
Commit
7b2ac386
authored
Aug 14, 2002
by
Anton Altaparmakov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NTFS: Cleanups, mostly whitespace. Found during resync with 2.4 backport.
parent
456f17cd
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
14 deletions
+12
-14
fs/ntfs/aops.c
fs/ntfs/aops.c
+1
-1
fs/ntfs/attrib.c
fs/ntfs/attrib.c
+2
-2
fs/ntfs/compress.c
fs/ntfs/compress.c
+4
-4
fs/ntfs/dir.c
fs/ntfs/dir.c
+2
-4
fs/ntfs/inode.c
fs/ntfs/inode.c
+1
-1
fs/ntfs/mft.c
fs/ntfs/mft.c
+2
-2
No files found.
fs/ntfs/aops.c
View file @
7b2ac386
...
@@ -385,7 +385,7 @@ int ntfs_readpage(struct file *file, struct page *page)
...
@@ -385,7 +385,7 @@ int ntfs_readpage(struct file *file, struct page *page)
else
else
base_ni
=
ni
->
_INE
(
base_ntfs_ino
);
base_ni
=
ni
->
_INE
(
base_ntfs_ino
);
/* Map, pin and lock the mft record. */
/* Map, pin
,
and lock the mft record. */
mrec
=
map_mft_record
(
base_ni
);
mrec
=
map_mft_record
(
base_ni
);
if
(
unlikely
(
IS_ERR
(
mrec
)))
{
if
(
unlikely
(
IS_ERR
(
mrec
)))
{
err
=
PTR_ERR
(
mrec
);
err
=
PTR_ERR
(
mrec
);
...
...
fs/ntfs/attrib.c
View file @
7b2ac386
...
@@ -1676,7 +1676,7 @@ void reinit_attr_search_ctx(attr_search_context *ctx)
...
@@ -1676,7 +1676,7 @@ void reinit_attr_search_ctx(attr_search_context *ctx)
return
;
return
;
}
/* Attribute list. */
}
/* Attribute list. */
if
(
ctx
->
ntfs_ino
!=
ctx
->
base_ntfs_ino
)
if
(
ctx
->
ntfs_ino
!=
ctx
->
base_ntfs_ino
)
unmap_mft_record
(
ctx
->
ntfs_ino
);
unmap_
extent_
mft_record
(
ctx
->
ntfs_ino
);
init_attr_search_ctx
(
ctx
,
ctx
->
base_ntfs_ino
,
ctx
->
base_mrec
);
init_attr_search_ctx
(
ctx
,
ctx
->
base_ntfs_ino
,
ctx
->
base_mrec
);
return
;
return
;
}
}
...
@@ -1709,7 +1709,7 @@ attr_search_context *get_attr_search_ctx(ntfs_inode *ni, MFT_RECORD *mrec)
...
@@ -1709,7 +1709,7 @@ attr_search_context *get_attr_search_ctx(ntfs_inode *ni, MFT_RECORD *mrec)
void
put_attr_search_ctx
(
attr_search_context
*
ctx
)
void
put_attr_search_ctx
(
attr_search_context
*
ctx
)
{
{
if
(
ctx
->
base_ntfs_ino
&&
ctx
->
ntfs_ino
!=
ctx
->
base_ntfs_ino
)
if
(
ctx
->
base_ntfs_ino
&&
ctx
->
ntfs_ino
!=
ctx
->
base_ntfs_ino
)
unmap_mft_record
(
ctx
->
ntfs_ino
);
unmap_
extent_
mft_record
(
ctx
->
ntfs_ino
);
kmem_cache_free
(
ntfs_attr_ctx_cache
,
ctx
);
kmem_cache_free
(
ntfs_attr_ctx_cache
,
ctx
);
return
;
return
;
}
}
...
...
fs/ntfs/compress.c
View file @
7b2ac386
fs/ntfs/dir.c
View file @
7b2ac386
...
@@ -1048,9 +1048,7 @@ static inline int ntfs_filldir(ntfs_volume *vol, loff_t *fpos,
...
@@ -1048,9 +1048,7 @@ static inline int ntfs_filldir(ntfs_volume *vol, loff_t *fpos,
/*
/*
* VFS calls readdir without BKL but with i_sem held. This protects the VFS
* VFS calls readdir without BKL but with i_sem held. This protects the VFS
* parts (e.g. ->f_pos and ->i_size, and it also protects against directory
* parts (e.g. ->f_pos and ->i_size, and it also protects against directory
* modifications). Together with the rw semaphore taken by the call to
* modifications).
* map_mft_record(), the directory is truly locked down so we have a race free
* ntfs_readdir() without the BKL. (-:
*
*
* We use the same basic approach as the old NTFS driver, i.e. we parse the
* We use the same basic approach as the old NTFS driver, i.e. we parse the
* index root entries and then the index allocation entries that are marked
* index root entries and then the index allocation entries that are marked
...
...
fs/ntfs/inode.c
View file @
7b2ac386
...
@@ -844,7 +844,7 @@ static int ntfs_read_locked_inode(struct inode *vi)
...
@@ -844,7 +844,7 @@ static int ntfs_read_locked_inode(struct inode *vi)
ctx
->
attr
->
_ANR
(
allocated_size
));
ctx
->
attr
->
_ANR
(
allocated_size
));
/*
/*
* We are done with the mft record, so we release it. Otherwise
* We are done with the mft record, so we release it. Otherwise
*
*
we would deadlock in ntfs_attr_iget().
*/
*/
put_attr_search_ctx
(
ctx
);
put_attr_search_ctx
(
ctx
);
unmap_mft_record
(
ni
);
unmap_mft_record
(
ni
);
...
...
fs/ntfs/mft.c
View file @
7b2ac386
...
@@ -176,8 +176,8 @@ static inline MFT_RECORD *map_mft_record_page(ntfs_inode *ni)
...
@@ -176,8 +176,8 @@ static inline MFT_RECORD *map_mft_record_page(ntfs_inode *ni)
* First, take the mrec_lock semaphore. We might now be sleeping, while waiting
* First, take the mrec_lock semaphore. We might now be sleeping, while waiting
* for the semaphore if it was already locked by someone else.
* for the semaphore if it was already locked by someone else.
*
*
* The page of the record is
first mapped using map_mft_record_page() before
* The page of the record is
mapped using map_mft_record_page() before being
*
being
returned to the caller.
* returned to the caller.
*
*
* This in turn uses ntfs_map_page() to get the page containing the wanted mft
* This in turn uses ntfs_map_page() to get the page containing the wanted mft
* record (it in turn calls read_cache_page() which reads it in from disk if
* record (it in turn calls read_cache_page() which reads it in from disk if
...
...
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