Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
linux-seco-imx
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Jira
Code
Merge requests
12
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Clea OS
bsp
nxp
linux-seco-imx
Commits
9f713878
Commit
9f713878
authored
12 years ago
by
Al Viro
Browse files
Options
Downloads
Patches
Plain Diff
ext4: get rid of open-coded d_find_any_alias()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
a614a092
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fs/ext4/fsync.c
+1
-8
1 addition, 8 deletions
fs/ext4/fsync.c
with
1 addition
and
8 deletions
fs/ext4/fsync.c
+
1
−
8
View file @
9f713878
...
@@ -135,14 +135,7 @@ static int ext4_sync_parent(struct inode *inode)
...
@@ -135,14 +135,7 @@ static int ext4_sync_parent(struct inode *inode)
inode
=
igrab
(
inode
);
inode
=
igrab
(
inode
);
while
(
ext4_test_inode_state
(
inode
,
EXT4_STATE_NEWENTRY
))
{
while
(
ext4_test_inode_state
(
inode
,
EXT4_STATE_NEWENTRY
))
{
ext4_clear_inode_state
(
inode
,
EXT4_STATE_NEWENTRY
);
ext4_clear_inode_state
(
inode
,
EXT4_STATE_NEWENTRY
);
dentry
=
NULL
;
dentry
=
d_find_any_alias
(
inode
);
spin_lock
(
&
inode
->
i_lock
);
if
(
!
list_empty
(
&
inode
->
i_dentry
))
{
dentry
=
list_first_entry
(
&
inode
->
i_dentry
,
struct
dentry
,
d_alias
);
dget
(
dentry
);
}
spin_unlock
(
&
inode
->
i_lock
);
if
(
!
dentry
)
if
(
!
dentry
)
break
;
break
;
next
=
igrab
(
dentry
->
d_parent
->
d_inode
);
next
=
igrab
(
dentry
->
d_parent
->
d_inode
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment