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
41ced6dc
Commit
41ced6dc
authored
Dec 18, 2010
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch gfs2, close races
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
1c929cfe
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
14 deletions
+3
-14
fs/gfs2/export.c
fs/gfs2/export.c
+2
-11
fs/gfs2/ops_fstype.c
fs/gfs2/ops_fstype.c
+1
-1
fs/gfs2/ops_inode.c
fs/gfs2/ops_inode.c
+0
-2
No files found.
fs/gfs2/export.c
View file @
41ced6dc
...
...
@@ -126,12 +126,7 @@ static int gfs2_get_name(struct dentry *parent, char *name,
static
struct
dentry
*
gfs2_get_parent
(
struct
dentry
*
child
)
{
struct
dentry
*
dentry
;
dentry
=
d_obtain_alias
(
gfs2_lookupi
(
child
->
d_inode
,
&
gfs2_qdotdot
,
1
));
if
(
!
IS_ERR
(
dentry
))
d_set_d_op
(
dentry
,
&
gfs2_dops
);
return
dentry
;
return
d_obtain_alias
(
gfs2_lookupi
(
child
->
d_inode
,
&
gfs2_qdotdot
,
1
));
}
static
struct
dentry
*
gfs2_get_dentry
(
struct
super_block
*
sb
,
...
...
@@ -139,7 +134,6 @@ static struct dentry *gfs2_get_dentry(struct super_block *sb,
{
struct
gfs2_sbd
*
sdp
=
sb
->
s_fs_info
;
struct
inode
*
inode
;
struct
dentry
*
dentry
;
inode
=
gfs2_ilookup
(
sb
,
inum
->
no_addr
);
if
(
inode
)
{
...
...
@@ -156,10 +150,7 @@ static struct dentry *gfs2_get_dentry(struct super_block *sb,
return
ERR_CAST
(
inode
);
out_inode:
dentry
=
d_obtain_alias
(
inode
);
if
(
!
IS_ERR
(
dentry
))
d_set_d_op
(
dentry
,
&
gfs2_dops
);
return
dentry
;
return
d_obtain_alias
(
inode
);
}
static
struct
dentry
*
gfs2_fh_to_dentry
(
struct
super_block
*
sb
,
struct
fid
*
fid
,
...
...
fs/gfs2/ops_fstype.c
View file @
41ced6dc
...
...
@@ -440,7 +440,6 @@ static int gfs2_lookup_root(struct super_block *sb, struct dentry **dptr,
iput
(
inode
);
return
-
ENOMEM
;
}
d_set_d_op
(
dentry
,
&
gfs2_dops
);
*
dptr
=
dentry
;
return
0
;
}
...
...
@@ -1106,6 +1105,7 @@ static int fill_super(struct super_block *sb, struct gfs2_args *args, int silent
sb
->
s_magic
=
GFS2_MAGIC
;
sb
->
s_op
=
&
gfs2_super_ops
;
sb
->
s_d_op
=
&
gfs2_dops
;
sb
->
s_export_op
=
&
gfs2_export_ops
;
sb
->
s_xattr
=
gfs2_xattr_handlers
;
sb
->
s_qcop
=
&
gfs2_quotactl_ops
;
...
...
fs/gfs2/ops_inode.c
View file @
41ced6dc
...
...
@@ -106,8 +106,6 @@ static struct dentry *gfs2_lookup(struct inode *dir, struct dentry *dentry,
{
struct
inode
*
inode
=
NULL
;
d_set_d_op
(
dentry
,
&
gfs2_dops
);
inode
=
gfs2_lookupi
(
dir
,
&
dentry
->
d_name
,
0
);
if
(
inode
&&
IS_ERR
(
inode
))
return
ERR_CAST
(
inode
);
...
...
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