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
3d27573c
Commit
3d27573c
authored
May 19, 2017
by
Miklos Szeredi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ovl: remove unused arg from ovl_lookup_temp()
Signed-off-by:
Miklos Szeredi
<
mszeredi@redhat.com
>
parent
21a22878
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
fs/overlayfs/copy_up.c
fs/overlayfs/copy_up.c
+1
-1
fs/overlayfs/dir.c
fs/overlayfs/dir.c
+4
-4
fs/overlayfs/overlayfs.h
fs/overlayfs/overlayfs.h
+1
-1
No files found.
fs/overlayfs/copy_up.c
View file @
3d27573c
...
@@ -346,7 +346,7 @@ static int ovl_copy_up_locked(struct dentry *workdir, struct dentry *upperdir,
...
@@ -346,7 +346,7 @@ static int ovl_copy_up_locked(struct dentry *workdir, struct dentry *upperdir,
if
(
tmpfile
)
if
(
tmpfile
)
temp
=
ovl_do_tmpfile
(
upperdir
,
stat
->
mode
);
temp
=
ovl_do_tmpfile
(
upperdir
,
stat
->
mode
);
else
else
temp
=
ovl_lookup_temp
(
workdir
,
dentry
);
temp
=
ovl_lookup_temp
(
workdir
);
err
=
0
;
err
=
0
;
if
(
IS_ERR
(
temp
))
{
if
(
IS_ERR
(
temp
))
{
err
=
PTR_ERR
(
temp
);
err
=
PTR_ERR
(
temp
);
...
...
fs/overlayfs/dir.c
View file @
3d27573c
...
@@ -41,7 +41,7 @@ void ovl_cleanup(struct inode *wdir, struct dentry *wdentry)
...
@@ -41,7 +41,7 @@ void ovl_cleanup(struct inode *wdir, struct dentry *wdentry)
}
}
}
}
struct
dentry
*
ovl_lookup_temp
(
struct
dentry
*
workdir
,
struct
dentry
*
dentry
)
struct
dentry
*
ovl_lookup_temp
(
struct
dentry
*
workdir
)
{
{
struct
dentry
*
temp
;
struct
dentry
*
temp
;
char
name
[
20
];
char
name
[
20
];
...
@@ -68,7 +68,7 @@ static struct dentry *ovl_whiteout(struct dentry *workdir,
...
@@ -68,7 +68,7 @@ static struct dentry *ovl_whiteout(struct dentry *workdir,
struct
dentry
*
whiteout
;
struct
dentry
*
whiteout
;
struct
inode
*
wdir
=
workdir
->
d_inode
;
struct
inode
*
wdir
=
workdir
->
d_inode
;
whiteout
=
ovl_lookup_temp
(
workdir
,
dentry
);
whiteout
=
ovl_lookup_temp
(
workdir
);
if
(
IS_ERR
(
whiteout
))
if
(
IS_ERR
(
whiteout
))
return
whiteout
;
return
whiteout
;
...
@@ -261,7 +261,7 @@ static struct dentry *ovl_clear_empty(struct dentry *dentry,
...
@@ -261,7 +261,7 @@ static struct dentry *ovl_clear_empty(struct dentry *dentry,
if
(
upper
->
d_parent
->
d_inode
!=
udir
)
if
(
upper
->
d_parent
->
d_inode
!=
udir
)
goto
out_unlock
;
goto
out_unlock
;
opaquedir
=
ovl_lookup_temp
(
workdir
,
dentry
);
opaquedir
=
ovl_lookup_temp
(
workdir
);
err
=
PTR_ERR
(
opaquedir
);
err
=
PTR_ERR
(
opaquedir
);
if
(
IS_ERR
(
opaquedir
))
if
(
IS_ERR
(
opaquedir
))
goto
out_unlock
;
goto
out_unlock
;
...
@@ -393,7 +393,7 @@ static int ovl_create_over_whiteout(struct dentry *dentry, struct inode *inode,
...
@@ -393,7 +393,7 @@ static int ovl_create_over_whiteout(struct dentry *dentry, struct inode *inode,
if
(
err
)
if
(
err
)
goto
out
;
goto
out
;
newdentry
=
ovl_lookup_temp
(
workdir
,
dentry
);
newdentry
=
ovl_lookup_temp
(
workdir
);
err
=
PTR_ERR
(
newdentry
);
err
=
PTR_ERR
(
newdentry
);
if
(
IS_ERR
(
newdentry
))
if
(
IS_ERR
(
newdentry
))
goto
out_unlock
;
goto
out_unlock
;
...
...
fs/overlayfs/overlayfs.h
View file @
3d27573c
...
@@ -262,7 +262,7 @@ static inline void ovl_copyattr(struct inode *from, struct inode *to)
...
@@ -262,7 +262,7 @@ static inline void ovl_copyattr(struct inode *from, struct inode *to)
/* dir.c */
/* dir.c */
extern
const
struct
inode_operations
ovl_dir_inode_operations
;
extern
const
struct
inode_operations
ovl_dir_inode_operations
;
struct
dentry
*
ovl_lookup_temp
(
struct
dentry
*
workdir
,
struct
dentry
*
dentry
);
struct
dentry
*
ovl_lookup_temp
(
struct
dentry
*
workdir
);
struct
cattr
{
struct
cattr
{
dev_t
rdev
;
dev_t
rdev
;
umode_t
mode
;
umode_t
mode
;
...
...
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