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
Kirill Smelkov
linux
Commits
3f32d335
Commit
3f32d335
authored
Sep 23, 2004
by
Anton Altaparmakov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NTFS: Improve the previous transparent union removal.
Signed-off-by:
Anton Altaparmakov
<
aia21@cantab.net
>
parent
de8ea577
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
fs/ntfs/dir.c
fs/ntfs/dir.c
+7
-8
No files found.
fs/ntfs/dir.c
View file @
3f32d335
...
...
@@ -1013,9 +1013,8 @@ u64 ntfs_lookup_inode_by_name(ntfs_inode *dir_ni, const ntfschar *uname,
* Convert the Unicode @name to the loaded NLS and pass it to the @filldir
* callback.
*
* If @index_type is INDEX_TYPE_ALLOCATION, @ia_page is the locked page
* containing the index allocation block containing the index entry @ie.
* Otherwise, @ia_page is NULL.
* If @ia_page is not NULL it is the locked page containing the index
* allocation block containing the index entry @ie.
*
* Note, we drop (and then reacquire) the page lock on @ia_page across the
* @filldir() call otherwise we would deadlock with NFSd when it calls ->lookup
...
...
@@ -1023,7 +1022,7 @@ u64 ntfs_lookup_inode_by_name(ntfs_inode *dir_ni, const ntfschar *uname,
* retake the lock if we are returning a non-zero value as ntfs_readdir()
* would need to drop the lock immediately anyway.
*/
static
inline
int
ntfs_filldir
(
ntfs_volume
*
vol
,
loff_t
*
fpos
,
static
inline
int
ntfs_filldir
(
ntfs_volume
*
vol
,
loff_t
fpos
,
ntfs_inode
*
ndir
,
struct
page
*
ia_page
,
INDEX_ENTRY
*
ie
,
u8
*
name
,
void
*
dirent
,
filldir_t
filldir
)
{
...
...
@@ -1066,9 +1065,9 @@ static inline int ntfs_filldir(ntfs_volume *vol, loff_t *fpos,
if
(
ia_page
)
unlock_page
(
ia_page
);
ntfs_debug
(
"Calling filldir for %s with len %i, fpos 0x%llx, inode "
"0x%lx, DT_%s."
,
name
,
name_len
,
*
fpos
,
mref
,
"0x%lx, DT_%s."
,
name
,
name_len
,
fpos
,
mref
,
dt_type
==
DT_DIR
?
"DIR"
:
"REG"
);
rc
=
filldir
(
dirent
,
name
,
name_len
,
*
fpos
,
mref
,
dt_type
);
rc
=
filldir
(
dirent
,
name
,
name_len
,
fpos
,
mref
,
dt_type
);
/* Relock the page but not if we are aborting ->readdir. */
if
(
!
rc
&&
ia_page
)
lock_page
(
ia_page
);
...
...
@@ -1226,7 +1225,7 @@ static int ntfs_readdir(struct file *filp, void *dirent, filldir_t filldir)
/* Advance the position even if going to skip the entry. */
fpos
=
(
u8
*
)
ie
-
(
u8
*
)
ir
;
/* Submit the name to the filldir callback. */
rc
=
ntfs_filldir
(
vol
,
&
fpos
,
ndir
,
NULL
,
ie
,
name
,
dirent
,
rc
=
ntfs_filldir
(
vol
,
fpos
,
ndir
,
NULL
,
ie
,
name
,
dirent
,
filldir
);
if
(
rc
)
{
kfree
(
ir
);
...
...
@@ -1412,7 +1411,7 @@ static int ntfs_readdir(struct file *filp, void *dirent, filldir_t filldir)
* before returning, unless a non-zero value is returned in
* which case the page is left unlocked.
*/
rc
=
ntfs_filldir
(
vol
,
&
fpos
,
ndir
,
ia_page
,
ie
,
name
,
dirent
,
rc
=
ntfs_filldir
(
vol
,
fpos
,
ndir
,
ia_page
,
ie
,
name
,
dirent
,
filldir
);
if
(
rc
)
{
/* @ia_page is already unlocked in this case. */
...
...
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