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
a569c711
Commit
a569c711
authored
Jul 23, 2008
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] don't pass nameidata to gfs2_lookupi()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
2ad94ae6
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
8 deletions
+8
-8
fs/gfs2/inode.c
fs/gfs2/inode.c
+3
-3
fs/gfs2/inode.h
fs/gfs2/inode.h
+1
-1
fs/gfs2/ops_export.c
fs/gfs2/ops_export.c
+1
-1
fs/gfs2/ops_inode.c
fs/gfs2/ops_inode.c
+2
-2
fs/gfs2/super.c
fs/gfs2/super.c
+1
-1
No files found.
fs/gfs2/inode.c
View file @
a569c711
...
...
@@ -448,7 +448,7 @@ struct inode *gfs2_lookup_simple(struct inode *dip, const char *name)
struct
qstr
qstr
;
struct
inode
*
inode
;
gfs2_str2qstr
(
&
qstr
,
name
);
inode
=
gfs2_lookupi
(
dip
,
&
qstr
,
1
,
NULL
);
inode
=
gfs2_lookupi
(
dip
,
&
qstr
,
1
);
/* gfs2_lookupi has inconsistent callers: vfs
* related routines expect NULL for no entry found,
* gfs2_lookup_simple callers expect ENOENT
...
...
@@ -477,7 +477,7 @@ struct inode *gfs2_lookup_simple(struct inode *dip, const char *name)
*/
struct
inode
*
gfs2_lookupi
(
struct
inode
*
dir
,
const
struct
qstr
*
name
,
int
is_root
,
struct
nameidata
*
nd
)
int
is_root
)
{
struct
super_block
*
sb
=
dir
->
i_sb
;
struct
gfs2_inode
*
dip
=
GFS2_I
(
dir
);
...
...
@@ -1173,7 +1173,7 @@ int gfs2_ok_to_move(struct gfs2_inode *this, struct gfs2_inode *to)
break
;
}
tmp
=
gfs2_lookupi
(
dir
,
&
dotdot
,
1
,
NULL
);
tmp
=
gfs2_lookupi
(
dir
,
&
dotdot
,
1
);
if
(
IS_ERR
(
tmp
))
{
error
=
PTR_ERR
(
tmp
);
break
;
...
...
fs/gfs2/inode.h
View file @
a569c711
...
...
@@ -83,7 +83,7 @@ int gfs2_inode_refresh(struct gfs2_inode *ip);
int
gfs2_dinode_dealloc
(
struct
gfs2_inode
*
inode
);
int
gfs2_change_nlink
(
struct
gfs2_inode
*
ip
,
int
diff
);
struct
inode
*
gfs2_lookupi
(
struct
inode
*
dir
,
const
struct
qstr
*
name
,
int
is_root
,
struct
nameidata
*
nd
);
int
is_root
);
struct
inode
*
gfs2_createi
(
struct
gfs2_holder
*
ghs
,
const
struct
qstr
*
name
,
unsigned
int
mode
,
dev_t
dev
);
int
gfs2_rmdiri
(
struct
gfs2_inode
*
dip
,
const
struct
qstr
*
name
,
...
...
fs/gfs2/ops_export.c
View file @
a569c711
...
...
@@ -134,7 +134,7 @@ static struct dentry *gfs2_get_parent(struct dentry *child)
struct
dentry
*
dentry
;
gfs2_str2qstr
(
&
dotdot
,
".."
);
inode
=
gfs2_lookupi
(
child
->
d_inode
,
&
dotdot
,
1
,
NULL
);
inode
=
gfs2_lookupi
(
child
->
d_inode
,
&
dotdot
,
1
);
if
(
!
inode
)
return
ERR_PTR
(
-
ENOENT
);
...
...
fs/gfs2/ops_inode.c
View file @
a569c711
...
...
@@ -74,7 +74,7 @@ static int gfs2_create(struct inode *dir, struct dentry *dentry,
return
PTR_ERR
(
inode
);
}
inode
=
gfs2_lookupi
(
dir
,
&
dentry
->
d_name
,
0
,
nd
);
inode
=
gfs2_lookupi
(
dir
,
&
dentry
->
d_name
,
0
);
if
(
inode
)
{
if
(
!
IS_ERR
(
inode
))
{
gfs2_holder_uninit
(
ghs
);
...
...
@@ -109,7 +109,7 @@ static struct dentry *gfs2_lookup(struct inode *dir, struct dentry *dentry,
dentry
->
d_op
=
&
gfs2_dops
;
inode
=
gfs2_lookupi
(
dir
,
&
dentry
->
d_name
,
0
,
nd
);
inode
=
gfs2_lookupi
(
dir
,
&
dentry
->
d_name
,
0
);
if
(
inode
&&
IS_ERR
(
inode
))
return
ERR_CAST
(
inode
);
...
...
fs/gfs2/super.c
View file @
a569c711
...
...
@@ -389,7 +389,7 @@ int gfs2_jindex_hold(struct gfs2_sbd *sdp, struct gfs2_holder *ji_gh)
break
;
INIT_LIST_HEAD
(
&
jd
->
extent_list
);
jd
->
jd_inode
=
gfs2_lookupi
(
sdp
->
sd_jindex
,
&
name
,
1
,
NULL
);
jd
->
jd_inode
=
gfs2_lookupi
(
sdp
->
sd_jindex
,
&
name
,
1
);
if
(
!
jd
->
jd_inode
||
IS_ERR
(
jd
->
jd_inode
))
{
if
(
!
jd
->
jd_inode
)
error
=
-
ENOENT
;
...
...
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