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
ba87167c
Commit
ba87167c
authored
Dec 18, 2010
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch ocfs2, close races
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
41ced6dc
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
10 deletions
+2
-10
fs/ocfs2/export.c
fs/ocfs2/export.c
+1
-5
fs/ocfs2/namei.c
fs/ocfs2/namei.c
+0
-5
fs/ocfs2/super.c
fs/ocfs2/super.c
+1
-0
No files found.
fs/ocfs2/export.c
View file @
ba87167c
...
...
@@ -137,9 +137,7 @@ static struct dentry *ocfs2_get_dentry(struct super_block *sb,
}
result
=
d_obtain_alias
(
inode
);
if
(
!
IS_ERR
(
result
))
d_set_d_op
(
result
,
&
ocfs2_dentry_ops
);
else
if
(
IS_ERR
(
result
))
mlog_errno
(
PTR_ERR
(
result
));
bail:
...
...
@@ -175,8 +173,6 @@ static struct dentry *ocfs2_get_parent(struct dentry *child)
}
parent
=
d_obtain_alias
(
ocfs2_iget
(
OCFS2_SB
(
dir
->
i_sb
),
blkno
,
0
,
0
));
if
(
!
IS_ERR
(
parent
))
d_set_d_op
(
parent
,
&
ocfs2_dentry_ops
);
bail_unlock:
ocfs2_inode_unlock
(
dir
,
0
);
...
...
fs/ocfs2/namei.c
View file @
ba87167c
...
...
@@ -147,7 +147,6 @@ static struct dentry *ocfs2_lookup(struct inode *dir, struct dentry *dentry,
spin_unlock
(
&
oi
->
ip_lock
);
bail_add:
d_set_d_op
(
dentry
,
&
ocfs2_dentry_ops
);
ret
=
d_splice_alias
(
inode
,
dentry
);
if
(
inode
)
{
...
...
@@ -415,7 +414,6 @@ static int ocfs2_mknod(struct inode *dir,
mlog_errno
(
status
);
goto
leave
;
}
d_set_d_op
(
dentry
,
&
ocfs2_dentry_ops
);
status
=
ocfs2_add_entry
(
handle
,
dentry
,
inode
,
OCFS2_I
(
inode
)
->
ip_blkno
,
parent_fe_bh
,
...
...
@@ -743,7 +741,6 @@ static int ocfs2_link(struct dentry *old_dentry,
}
ihold
(
inode
);
d_set_d_op
(
dentry
,
&
ocfs2_dentry_ops
);
d_instantiate
(
dentry
,
inode
);
out_commit:
...
...
@@ -1797,7 +1794,6 @@ static int ocfs2_symlink(struct inode *dir,
mlog_errno
(
status
);
goto
bail
;
}
d_set_d_op
(
dentry
,
&
ocfs2_dentry_ops
);
status
=
ocfs2_add_entry
(
handle
,
dentry
,
inode
,
le64_to_cpu
(
fe
->
i_blkno
),
parent_fe_bh
,
...
...
@@ -2462,7 +2458,6 @@ int ocfs2_mv_orphaned_inode_to_new(struct inode *dir,
goto
out_commit
;
}
d_set_d_op
(
dentry
,
&
ocfs2_dentry_ops
);
d_instantiate
(
dentry
,
inode
);
status
=
0
;
out_commit:
...
...
fs/ocfs2/super.c
View file @
ba87167c
...
...
@@ -2097,6 +2097,7 @@ static int ocfs2_initialize_super(struct super_block *sb,
sb
->
s_fs_info
=
osb
;
sb
->
s_op
=
&
ocfs2_sops
;
sb
->
s_d_op
=
&
ocfs2_dentry_ops
;
sb
->
s_export_op
=
&
ocfs2_export_ops
;
sb
->
s_qcop
=
&
ocfs2_quotactl_ops
;
sb
->
dq_op
=
&
ocfs2_quota_operations
;
...
...
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